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

compilation issue on strcpy and DES deprecated #41

Open
pox822 opened this issue Jan 10, 2024 · 0 comments
Open

compilation issue on strcpy and DES deprecated #41

pox822 opened this issue Jan 10, 2024 · 0 comments

Comments

@pox822
Copy link

pox822 commented Jan 10, 2024

2 issues :
In file included from /usr/include/string.h:535,
from mfterm.c:26:
In function ‘strncpy’,
inlined from ‘completion_sub_cmd_generator’ at mfterm.c:263:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:95:10: error: ‘__builtin_strncpy’ specified bound 128 equals destination size [-Werror=stringop-truncatio
]
95 | return __builtin___strncpy_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
96 | __glibc_objsize (__dest));

and

mac.c:50:3: error: ‘DES_set_key_unchecked’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
50 | DES_set_key_unchecked(&des_key, &schedule);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from mac.c:20:
/usr/include/openssl/des.h:192:6: note: declared here
192 | void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule);
| ^~~~~~~~~~~~~~~~~~~~~
mac.c:59:3: error: ‘DES_ncbc_encrypt’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
59 | DES_ncbc_encrypt(padded_input, output, length, &schedule, &ivec, 1);
| ^~~~~~~~~~~~~~~~
In file included from mac.c:20:
/usr/include/openssl/des.h:93:6: note: declared here
93 | void DES_ncbc_encrypt(const unsigned char *input, unsigned char *output,
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

@pox822 pox822 changed the title complilation issue on strcpy and DES deprecated compilation issue on strcpy and DES deprecated Jan 10, 2024
pox822 added a commit to pox822/mfterm that referenced this issue Jan 14, 2024
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

1 participant