Don't lie about array parameters
Passing an array as a parameter to a function in C doesn't work, they decay into pointer. Defining them is pointless and error prone, so just declare a pointer.
This commit is contained in:
committed by
Dmitry Podgorny
parent
cd92f69c76
commit
ed5f982312
12
src/scram.h
12
src/scram.h
@@ -23,14 +23,14 @@
|
||||
|
||||
void SCRAM_SHA1_ClientKey(const uint8_t *password, size_t len,
|
||||
const uint8_t *salt, size_t salt_len, uint32_t i,
|
||||
uint8_t key[SHA1_DIGEST_SIZE]);
|
||||
uint8_t *key);
|
||||
|
||||
void SCRAM_SHA1_ClientSignature(const uint8_t ClientKey[SHA1_DIGEST_SIZE],
|
||||
void SCRAM_SHA1_ClientSignature(const uint8_t *ClientKey,
|
||||
const uint8_t *AuthMessage, size_t len,
|
||||
uint8_t sign[SHA1_DIGEST_SIZE]);
|
||||
uint8_t *sign);
|
||||
|
||||
void SCRAM_SHA1_ClientProof(const uint8_t ClientKey[SHA1_DIGEST_SIZE],
|
||||
const uint8_t ClientSignature[SHA1_DIGEST_SIZE],
|
||||
uint8_t proof[SHA1_DIGEST_SIZE]);
|
||||
void SCRAM_SHA1_ClientProof(const uint8_t *ClientKey,
|
||||
const uint8_t *ClientSignature,
|
||||
uint8_t *proof);
|
||||
|
||||
#endif /* __LIBSTROPHE_SCRAM_H__ */
|
||||
|
||||
Reference in New Issue
Block a user