2025-12-21 12:06 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbssl/x509.c
! fixed compilation with OpenSSL < 1.1
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
Entries may not always be in chronological/commit order.
|
||||
See license at the end of file. */
|
||||
|
||||
2025-12-21 12:06 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* contrib/hbssl/x509.c
|
||||
! fixed compilation with OpenSSL < 1.1
|
||||
|
||||
2025-12-21 10:45 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* contrib/hbssl/hbssl.hbx
|
||||
* contrib/hbssl/evppkey.c
|
||||
|
||||
@@ -162,12 +162,15 @@ HB_FUNC( X509_GET_SERIALNUMBER )
|
||||
if( x509 )
|
||||
{
|
||||
ASN1_INTEGER * a = X509_get_serialNumber( x509 );
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
int64_t r = 0;
|
||||
|
||||
if( ASN1_INTEGER_get_int64( &r, a ) > 0 )
|
||||
hb_retnint( r );
|
||||
else
|
||||
hb_retni( -1 );
|
||||
#else
|
||||
hb_retnint( ASN1_INTEGER_get( a ) );
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user