FreeBSD Bugzilla – Attachment 256654 Details for
Bug 284021
usr.sbin/pkg/rsa.c: missing include of string.h
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for usr.sbin/pkg/rsa.c adding include of string.h
usr.sbin___pkg___rsa.c-string.h.diff (text/plain), 811 bytes, created by
Trond Endrestøl
on 2025-01-12 18:54:02 UTC
(
hide
)
Description:
Patch for usr.sbin/pkg/rsa.c adding include of string.h
Filename:
MIME Type:
Creator:
Trond Endrestøl
Created:
2025-01-12 18:54:02 UTC
Size:
811 bytes
patch
obsolete
>--- rsa.o --- >/usr/src/usr.sbin/pkg/rsa.c:164:37: error: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] > 164 | ret = rsa_verify_data(ctx, sha256, strlen(sha256), sigfile, key, keylen, > | ^ >/usr/src/usr.sbin/pkg/rsa.c:164:37: note: include the header <string.h> or explicitly provide a declaration for 'strlen' >1 error generated. > >diff --git a/usr.sbin/pkg/rsa.c b/usr.sbin/pkg/rsa.c >index b28f44ec1953..0056ccb595a9 100644 >--- a/usr.sbin/pkg/rsa.c >+++ b/usr.sbin/pkg/rsa.c >@@ -32,6 +32,7 @@ > > #include <err.h> > #include <stdbool.h> >+#include <string.h> > > #include <openssl/err.h> > #include <openssl/ssl.h>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 284021
: 256654