Fix unresolved reference in toxencryptsave API.

Also, make sure this won't happen again by checking for it in
format-source.
This commit is contained in:
iphydf 2016-12-14 09:17:19 +00:00
parent 22fca79ad7
commit bbdd798256
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
3 changed files with 7 additions and 2 deletions

View File

@ -40,6 +40,11 @@ $APIDSL toxcore/tox.api.h > toxcore/tox.h
$APIDSL toxav/toxav.api.h > toxav/toxav.h $APIDSL toxav/toxav.api.h > toxav/toxav.h
$APIDSL toxencryptsave/toxencryptsave.api.h > toxencryptsave/toxencryptsave.h $APIDSL toxencryptsave/toxencryptsave.api.h > toxencryptsave/toxencryptsave.h
if grep '<unresolved>' */*.h; then
echo "error: some apidsl references were unresolved"
exit 1
fi
SOURCES=`find . -name "*.[ch]" -and -not -name "*.api.h" -and -not -wholename "*crypto_pwhash*" -and -not -wholename "./super_donators/*"` SOURCES=`find . -name "*.[ch]" -and -not -name "*.api.h" -and -not -wholename "*crypto_pwhash*" -and -not -wholename "./super_donators/*"`
$ASTYLE -n --options=other/astyle/astylerc $SOURCES $ASTYLE -n --options=other/astyle/astylerc $SOURCES

View File

@ -49,7 +49,7 @@ extern "C" {
* prefer the advanced API and reuse pass-key objects. * prefer the advanced API and reuse pass-key objects.
* *
* To use the second part, first derive an encryption key from a password with * To use the second part, first derive an encryption key from a password with
* ${pass_Key.derive}, then use the derived key to encrypt the data. * ${tox.pass_Key.derive}, then use the derived key to encrypt the data.
* *
* The encrypted data is prepended with a magic number, to aid validity * The encrypted data is prepended with a magic number, to aid validity
* checking (no guarantees are made of course). Any data to be decrypted must * checking (no guarantees are made of course). Any data to be decrypted must

View File

@ -48,7 +48,7 @@ extern "C" {
* prefer the advanced API and reuse pass-key objects. * prefer the advanced API and reuse pass-key objects.
* *
* To use the second part, first derive an encryption key from a password with * To use the second part, first derive an encryption key from a password with
* <unresolved>, then use the derived key to encrypt the data. * tox_pass_key_derive, then use the derived key to encrypt the data.
* *
* The encrypted data is prepended with a magic number, to aid validity * The encrypted data is prepended with a magic number, to aid validity
* checking (no guarantees are made of course). Any data to be decrypted must * checking (no guarantees are made of course). Any data to be decrypted must