1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

C++ compat

This commit is contained in:
Frank Denis 2015-09-21 16:05:53 +02:00
parent 6be1ce3f34
commit dca2131f45

View File

@ -16,9 +16,12 @@ char hex[crypto_scalarmult_BYTES * 2 + 1];
int main(void)
{
unsigned char *alicepk = sodium_malloc(crypto_scalarmult_BYTES);
unsigned char *bobpk = sodium_malloc(crypto_scalarmult_BYTES);
unsigned char *k = sodium_malloc(crypto_scalarmult_BYTES);
unsigned char *alicepk =
(unsigned char *) sodium_malloc(crypto_scalarmult_BYTES);
unsigned char *bobpk =
(unsigned char *) sodium_malloc(crypto_scalarmult_BYTES);
unsigned char *k =
(unsigned char *) sodium_malloc(crypto_scalarmult_BYTES);
assert(alicepk != NULL && bobpk != NULL && k != NULL);