/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to debian/mandos-client.postinst

  • Committer: Teddy Hogeborn
  • Date: 2016-02-28 20:30:21 UTC
  • mto: (237.7.594 trunk)
  • mto: This revision was merged to the branch mainline in revision 333.
  • Revision ID: teddy@recompile.se-20160228203021-4rvy27vm4mx4r575
Client: Remove an incorrect "nonnull" attribute

* plugins.d/mandos-client.c (init_gnutls_global): Remove "nonnull"
                           attribute from "dhparamsfilename" argument.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
# Update the initial RAM file system image
21
21
update_initramfs()
22
22
{
23
 
    if [ -x /usr/sbin/update-initramfs ]; then
24
 
        update-initramfs -u -k all
25
 
    fi
 
23
    update-initramfs -u -k all
26
24
    
27
25
    if dpkg --compare-versions "$2" lt-nl "1.0.10-1"; then
28
26
        # Make old initrd.img files unreadable too, in case they were
58
56
        -a -r /etc/keys/mandos/seckey.txt ]; then
59
57
        return 0
60
58
    fi
61
 
    if [ -x /usr/sbin/mandos-keygen ]; then
62
 
        mandos-keygen
63
 
    fi
 
59
    mandos-keygen
64
60
}
65
61
 
66
62
create_dh_params(){
67
 
    if [ -r /etc/keys/mandos/client-dhparams.pem ]; then
 
63
    if [ -r /etc/keys/mandos/dhparams.pem ]; then
68
64
        return 0
69
65
    fi
70
66
    # Create a Diffe-Hellman parameters file
84
80
        "$DHFILE"
85
81
    sed --in-place --expression='1i-----BEGIN DH PARAMETERS-----' \
86
82
            "$DHFILE"
87
 
    cp --archive "$DHFILE" /etc/keys/mandos/client-dhparams.pem
 
83
    cp --archive "$DHFILE" /etc/keys/mandos/dhparams.pem
88
84
    rm -- "$DHFILE"
89
85
}
90
86