mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
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:
parent
22fca79ad7
commit
bbdd798256
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user