Mercurial > hg > quicktun
comparison src/proto.nacl0.c @ 62:5b9e742bb704
Fixed compiler warnings, removed redundant version dependencies in debian package
author | Ivo Smits <Ivo@UFO-Net.nl> |
---|---|
date | Sat, 07 Jan 2017 15:47:19 +0100 |
parents | 66d9d80215f0 |
children |
comparison
equal
deleted
inserted
replaced
61:66d9d80215f0 | 62:5b9e742bb704 |
---|---|
78 } | 78 } |
79 fclose(pkfile); | 79 fclose(pkfile); |
80 } else { | 80 } else { |
81 return errorexit("Missing PRIVATE_KEY"); | 81 return errorexit("Missing PRIVATE_KEY"); |
82 } | 82 } |
83 crypto_box_curve25519xsalsa20poly1305_beforenm(d->cbefore, cpublickey, csecretkey); | 83 if (crypto_box_curve25519xsalsa20poly1305_beforenm(d->cbefore, cpublickey, csecretkey)) |
84 return errorexit("Encryption key calculation failed"); | |
84 return 0; | 85 return 0; |
85 } | 86 } |
86 | 87 |
87 struct qtproto qtproto_nacl0 = { | 88 struct qtproto qtproto_nacl0 = { |
88 1, | 89 1, |