8000 Unclear how to link with OpenSSL 3 · Issue #6869 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content
Unclear how to link with OpenSSL 3 #6869
Closed
@d94pn

Description

@d94pn

When building libgit2 it is not clear how to properly build with OpenSSL 3. By deafult, OpenSSL 1 on my system is linked with dynamically but I want to link (statically) with a local build of Open SSL 3. The only way to configure this is to set the OPENSSL_SSL_LIBRARY and OPENSSL_CRYPTO_LIBRARY variables when running "cmake .." but I just modifying the linking can cleary not be sufficient since OpenSSL 3 is not backward compatible with OpenSSL 1. And sure enough I get linking error.

Reproduction steps

cmake .. -DOPENSSL_SSL_LIBRARY=/Downloads/openssl-3.3.0/libssl.a -D OPENSSL_CRYP
TO_LIBRARY=/Downloads/openssl-3.3.0/libcrypto.a
cmake --build .

Expected behavior

At least a clear description of which OpenSSL versions are supported and how the build process selects either and how to override this selection if possible.

Actual behavior

/Downloads/libgit2-1.8.1/src/libgit2/streams/openssl.c:398: undefined reference to `SSL_get_peer_certificate'

Version of libgit2 (release number or SHA1)

1.8.1

Operating system(s) tested

RHEL 8.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0