Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 843279 Details for
Bug 787314
net-misc/ptpd-2.3.1-r2 - /.../ossl_typ.h: error: conflicting types for EVP_MD_CTX; have struct evp_md_ctx_st
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to properly use recent openssl API
ptpd-2.3.1-r2-md5_ctx.patch (text/plain), 1.78 KB, created by
Jocelyn Mayer
on 2022-12-17 22:41:51 UTC
(
hide
)
Description:
Patch to properly use recent openssl API
Filename:
MIME Type:
Creator:
Jocelyn Mayer
Created:
2022-12-17 22:41:51 UTC
Size:
1.78 KB
patch
obsolete
>--- ptpd-ptpd-2.3.1/src/dep/ntpengine/ntp_isc_md5.h 2022-06-13 12:06:41.011511173 +0200 >+++ ptpd-ptpd-2.3.1/src/dep/ntpengine/ntp_isc_md5.h 2022-06-13 12:10:22.114199482 +0200 >@@ -55,6 +55,10 @@ > #include <strings.h> > #endif /* HAVE_STRINGS_H */ > >+#include <openssl/ossl_typ.h> >+#include <openssl/evp.h> >+#include <openssl/md5.h> >+ > #define ISC_MD5_DIGESTLENGTH 16U > > >@@ -78,11 +78,11 @@ isc_md5_update(isc_md5_t *ctx, const uns > void > isc_md5_final(isc_md5_t *ctx, unsigned char *digest); > >- typedef isc_md5_t MD5_CTX; >+// typedef isc_md5_t MD5_CTX; > # define MD5Init(c) isc_md5_init(c) > # define MD5Update(c, p, s) isc_md5_update(c, p, s) > # define MD5Final(d, c) isc_md5_final((c), (d)) /* swapped */ >- typedef MD5_CTX EVP_MD_CTX; >+// typedef MD5_CTX EVP_MD_CTX; > # define EVP_DigestInit(c) MD5Init(c) > # define EVP_DigestUpdate(c, p, s) MD5Update(c, p, s) > # define EVP_DigestFinal(c, d, pdl) \ >--- ptpd-ptpd-2.3.1/src/dep/ntpengine/ntp_isc_md5.c 2015-06-29 17:13:29.000000000 +0200 >+++ ptpd-ptpd-2.3.1/src/dep/ntpengine/ntp_isc_md5.c 2022-06-13 12:39:24.593386704 +0200 >@@ -262,12 +262,13 @@ MD5authencrypt( > { > u_char digest[64]; > u_int len; >- EVP_MD_CTX ctx; >+ EVP_MD_CTX *ctx = EVP_MD_CTX_new(); > pkt[length / 4] = htonl(keyid); >- EVP_DigestInit(&ctx); >- EVP_DigestUpdate(&ctx, (u_char *)key, (u_int)strlen(key)); >- EVP_DigestUpdate(&ctx, (u_char *)pkt, (u_int)length); >- EVP_DigestFinal(&ctx, digest, &len); >+ EVP_DigestInit(ctx); >+ EVP_DigestUpdate(ctx, (u_char *)key, (u_int)strlen(key)); >+ EVP_DigestUpdate(ctx, (u_char *)pkt, (u_int)length); >+ EVP_DigestFinal(ctx, digest, &len); >+ EVP_MD_CTX_free(ctx); > memmove((u_char *)pkt + length + 4, digest, len); > return (len + 4); > }
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 787314
:
704898
|
704901
|
704904
|
704907
|
704910
|
704913
|
704916
| 843279