Bug 255277

Summary: Base OpenSSL is missing the symbol EVP_PKEY_meth_get_digestsign in /usr/lib/libcrypto.so
Product: Base System Reporter: Yuri Victorovich <yuri>
Component: miscAssignee: John Baldwin <jhb>
Status: Closed FIXED    
Severity: Affects Some People CC: amdmi3, jhb, jkim
Priority: --- Flags: jhb: mfc-stable13+
jhb: mfc-stable12+
Version: 12.2-STABLE   
Hardware: Any   
OS: Any   

Description Yuri Victorovich freebsd_committer freebsd_triage 2021-04-20 18:12:21 UTC
This symbol is present in the static library:
> $ nm /usr/lib/libcrypto.a | grep EVP_PKEY_meth_get_digestsign
> 0000000000000ec0 T EVP_PKEY_meth_get_digestsign

but it is missing in the shared library:
> $ elfdump -a /usr/lib/libcrypto.so | grep EVP_PKEY_meth_get_digestsign

This was discovered when the port security/pkcs11-tools failed to build without explicitly making it to use the static library.

12.2-STABLE amd64
Comment 1 John Baldwin freebsd_committer freebsd_triage 2021-05-26 21:06:40 UTC
It looks like the Version.map for libcrypto is missing symbols from 1.1.1e and later.  I've uploaded a possible (but untested!) fix at https://reviews.freebsd.org/D30483
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-05-28 22:19:04 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=7ad70d22c667173586c04fc13dd315995d78fbbf

commit 7ad70d22c667173586c04fc13dd315995d78fbbf
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-05-28 22:18:15 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-05-28 22:18:15 +0000

    libcrypto: Add symbol versions for symbols added since 1.1.1d.

    While here, trim a spurious local: I missed when added SSL_sendfile.

    PR:             255277
    Reported by:    yuri
    Reviewed by:    jkim
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D30483

 secure/lib/libcrypto/Version.map | 17 ++++++++++++++++-
 secure/lib/libssl/Version.map    |  1 -
 2 files changed, 16 insertions(+), 2 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-06-09 22:20:39 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=f8edb3f9c725e5b4a60981ee19a56395b0497e13

commit f8edb3f9c725e5b4a60981ee19a56395b0497e13
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-05-28 22:18:15 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-06-09 21:53:42 +0000

    libcrypto: Add symbol versions for symbols added since 1.1.1d.

    While here, trim a spurious local: I missed when added SSL_sendfile.

    PR:             255277
    Reported by:    yuri
    Reviewed by:    jkim
    Differential Revision:  https://reviews.freebsd.org/D30483

    (cherry picked from commit 7ad70d22c667173586c04fc13dd315995d78fbbf)

 secure/lib/libcrypto/Version.map | 17 ++++++++++++++++-
 secure/lib/libssl/Version.map    |  1 -
 2 files changed, 16 insertions(+), 2 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2021-06-09 22:20:40 UTC
A commit in branch stable/12 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=f29f5cc6f2d390b1ae4a6c526271e37233aafc70

commit f29f5cc6f2d390b1ae4a6c526271e37233aafc70
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-05-28 22:18:15 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-06-09 21:54:13 +0000

    libcrypto: Add symbol versions for symbols added since 1.1.1d.

    While here, trim a spurious local: I missed when added SSL_sendfile.

    PR:             255277
    Reported by:    yuri
    Reviewed by:    jkim
    Differential Revision:  https://reviews.freebsd.org/D30483

    (cherry picked from commit 7ad70d22c667173586c04fc13dd315995d78fbbf)

 secure/lib/libcrypto/Version.map | 17 ++++++++++++++++-
 secure/lib/libssl/Version.map    |  1 -
 2 files changed, 16 insertions(+), 2 deletions(-)
Comment 5 John Baldwin freebsd_committer freebsd_triage 2021-09-29 01:00:31 UTC
These fixes were merged to 12.2 and 13.0 as an EN on August 24, 2021.
Comment 6 John Baldwin freebsd_committer freebsd_triage 2021-09-29 01:02:53 UTC
*** Bug 258765 has been marked as a duplicate of this bug. ***