Skip to content

compilation issue on strcpy and DES deprecated #41

@pox822

Description

@pox822

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions