Skip to content
Snippets Groups Projects
Commit 1bf25bf4 authored by Guilherme Amadio's avatar Guilherme Amadio
Browse files

net: link to crypt, not OpenSSL's crypto

There seems to be a confusion between crypt(3) and crypto(7) here.
The crypt function is defined in unistd.h and is used for password
and data encryption, while crypto is OpenSSL's library implementing
cryptographic algorithms used in Internet standards.

crypt  - https://www.unix.com/man-page/all/3C/crypt
crypto - https://www.openssl.org/docs/man1.1.1/man7/crypto.html
parent a6c6a870
No related branches found
No related tags found
No related merge requests found
......@@ -21,13 +21,9 @@ ROOT_STANDARD_LIBRARY_PACKAGE(RootAuth
src/TRootSecContext.cxx
LINKDEF
LinkDefRoot.h
LIBRARIES
${CRYPTLIBS} rsa
DEPENDENCIES
Net
RIO
)
if(ssl)
target_link_libraries(RootAuth PUBLIC ${OPENSSL_LIBRARIES})
endif()
target_link_libraries(RootAuth PRIVATE rsa $<$<PLATFORM_ID:Linux>:crypt>)
......@@ -102,5 +102,5 @@ ROOT_STANDARD_LIBRARY_PACKAGE(Net
DEPENDENCIES RIO)
if(ssl)
target_link_libraries(Net PRIVATE ${OPENSSL_LIBRARIES} ${CRYPTLIBS})
target_link_libraries(Net PRIVATE ${OPENSSL_LIBRARIES})
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment