Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated nettle API calls #35

Open
a1s opened this issue Aug 4, 2019 · 2 comments
Open

Deprecated nettle API calls #35

a1s opened this issue Aug 4, 2019 · 2 comments

Comments

@a1s
Copy link

a1s commented Aug 4, 2019

I am trying to install rdup from AUR in Arch Linux. The build fails with the following errors:

crypt.c: In function ‘crypt_init’:
crypt.c:31:3: error: ‘nettle_aes_set_encrypt_key’ is deprecated [-Werror=deprecated-declarations]
   aes_set_encrypt_key(ctx, length, (uint8_t *) key);
   ^~~~~~~~~~~~~~~~~~~
In file included from crypt.c:13:
/usr/include/nettle/aes.h:158:1: note: declared here
 aes_set_encrypt_key(struct aes_ctx *ctx,
 ^~~~~~~~~~~~~~~~~~~
crypt.c:33:3: error: ‘nettle_aes_set_decrypt_key’ is deprecated [-Werror=deprecated-declarations]
   aes_set_decrypt_key(ctx, length, (uint8_t *) key);
   ^~~~~~~~~~~~~~~~~~~
In file included from crypt.c:13:
/usr/include/nettle/aes.h:163:1: note: declared here
 aes_set_decrypt_key(struct aes_ctx *ctx,
 ^~~~~~~~~~~~~~~~~~~
crypt.c: In function ‘crypt_path_ele’:
crypt.c:92:2: error: ‘nettle_aes_encrypt’ is deprecated [-Werror=deprecated-declarations]
  aes_encrypt(ctx, aes_size, dest, source);
  ^~~~~~~~~~~
In file included from crypt.c:13:
/usr/include/nettle/aes.h:173:1: note: declared here
 aes_encrypt(const struct aes_ctx *ctx,
 ^~~~~~~~~~~
crypt.c: In function ‘decrypt_path_ele’:
crypt.c:140:2: error: ‘nettle_aes_decrypt’ is deprecated [-Werror=deprecated-declarations]
  aes_decrypt(ctx, aes_size, dest, source);
  ^~~~~~~~~~~
In file included from crypt.c:13:
/usr/include/nettle/aes.h:177:1: note: declared here
 aes_decrypt(const struct aes_ctx *ctx,
 ^~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [GNUmakefile:38: crypt.o] Error 1

Nettle version is 3.5.1

@legrostdg
Copy link

It's becoming an issue to keep rdup in Debian, too...

@miekg
Copy link
Owner

miekg commented Oct 4, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants