Re: Symbols X509_set_notAfter and X509_set_notBefore are missing

2021-04-10 Thread Dave Coombs
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 +, 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  
> 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 +, 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@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@ubuntu_dev_vm:~/tools/openssl$ nm -D --defined-only 
> > 1.1.1k/libcrypto.so.1.1 | grep X509_set_not 
> > user@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


smime.p7s
Description: S/MIME cryptographic signature


Re: Symbols X509_set_notAfter and X509_set_notBefore are missing

2021-04-09 Thread Robert Smith via openssl-users
 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 
 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 +, 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@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@ubuntu_dev_vm:~/tools/openssl$ nm -D --defined-only 
> 1.1.1k/libcrypto.so.1.1 | grep X509_set_not 
> user@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
  

Re: Symbols X509_set_notAfter and X509_set_notBefore are missing

2021-04-09 Thread Benjamin Kaduk via openssl-users
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 +, 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@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@ubuntu_dev_vm:~/tools/openssl$ nm -D --defined-only 
> 1.1.1k/libcrypto.so.1.1 | grep X509_set_not 
> user@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


Symbols X509_set_notAfter and X509_set_notBefore are missing

2021-04-09 Thread Robert Smith via openssl-users
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@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@ubuntu_dev_vm:~/tools/openssl$ nm -D --defined-only 
1.1.1k/libcrypto.so.1.1 | grep X509_set_not user@ubuntu_dev_vm:~/tools/openssl$ 
I use default builds with NO limiting defines OPENSSL_API_COMPAT as described 
in the wiki : https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes

Can anyone clarify how to resolve the issue with X509_set_notAfter and 
X509_set_notBefore symbols.

ThanksRobert