Symbols X509_set_notAfter and X509_set_notBefore are missing

Dave Coombs dcoombs at carillon.ca
Sat Apr 10 13:09:23 UTC 2021


Is there a chance you're compiling using the 1.0.2 headers but linking
against 1.1.1?

  -D.


On Fri, 2021-04-09 at 20:48 +0000, Robert Smith via openssl-users
wrote:
> Unfortunately I am unable to link:
> 
> ../bin/arm_release/libAppcrypt.a(Certificate.o): In function `CreateCertificateHandler':
> /home/user/trunk/common/App/Crypt/ATCL/Certificate.cpp:198: undefined reference to `X509_set_notBefore'
> /home/user/trunk/common/App/Crypt/ATCL/Certificate.cpp:202: undefined reference to `X509_set_notAfter'
> 
> Any idea?
> 
> 
> On Friday, April 9, 2021, 04:13:32 PM EDT, Benjamin Kaduk <bkaduk at akamai.com> wrote:
> 
> 
> They are macros now.  You should still be able to build code that uses them.
> 
> -Ben
> 
> On Fri, Apr 09, 2021 at 08:03:28PM +0000, Robert Smith via openssl-users wrote:
> > Hello,
> > I am porting application from openSSL version 1.0.2u to 1.1.1k and linker complaints that symbols X509_set_notAfter and X509_set_notBefore are missing.
> > 
> > I've checked both versions 1.0.2u and 1.1.1k and I see that these symbols really are not present in 1.1.1k. 
> > user at ubuntu_dev_vm:~/tools/openssl$ nm -D --defined-only 1.0.2u/lib/libcrypto.so.1.0.0 | grep X509_set_not00110994 T X509_set_notAfter001109fc T X509_set_notBefore user at ubuntu_dev_vm:~/tools/openssl$ nm -D --defined-only 1.1.1k/libcrypto.so.1.1 | grep X509_set_not user at ubuntu_dev_vm:~/tools/openssl$ 
> > I use default builds with NO limiting defines OPENSSL_API_COMPAT as described in the wiki : https://urldefense.com/v3/__https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes__;!!GjvTz_vk!BsiPUDmweh0jSUO9gmeu60lRgq1aIS7FPk1Q6SJsI7kns9h5ZO64IagBa0aJZA$
> 
> > 
> > Can anyone clarify how to resolve the issue with X509_set_notAfter and X509_set_notBefore symbols.
> > 
> > ThanksRobert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7151 bytes
Desc: not available
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20210410/1deed815/attachment-0001.bin>


More information about the openssl-users mailing list