2025-01-18 04:59 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* contrib/hbssl/bio.c
    ! added missing BIO_free() call in HB_BIO destructor
    ! fixed BIO_free() function to properly operate on HB_BIO structure

  * contrib/hbssl/evp.c
    ! fixed EVP_PKEY_free() to work with Harbour GC pointer items instead of
      raw pointer items

  * contrib/hbssl/evpciph.c
    ! fixed EVP_SealInit() and EVP_OpenInit() to work with Harbour GC pointer
      items instead of raw pointer items

  * contrib/hbssl/hbssl.h
  * contrib/hbssl/rsa.c
  * contrib/hbssl/evppkey.c
    + added new C functions:
         void hb_RSA_par_free( int iParam );
         EVP_PKEY * hb_EVP_PKEY_get( PHB_ITEM pItem );
         void hb_EVP_PKEY_free( PHB_ITEM pItem );

  * contrib/hbssl/evppkey.c
    ! fixed EVP_PKEY_assign_RSA to work with RSA Harbour GC pointer
      item instead of raw pointer items

  * contrib/hbssl/pem.c
    ! redirect old dummy functions to current ones using Harbour GC pointer
      items:
         PEM_read_bio_PrivateKey() => PEM_read_PrivateKey()
         PEM_read_bio_PUBKEY()     => PEM_read_PUBKEY()
         PEM_read_bio_X509()       => PEM_read_X509()
         PEM_read_bio_X509_AUX()   => PEM_read_X509_AUX()
      Now they should work.

  ; above are only few fixes for chosen problems and still there are many
    others, most of HBSSL code should be rewritten from scratch to work
    with OpenSSL 3.x API
This commit is contained in:
Przemysław Czerpak
2025-01-18 04:59:57 +01:00
parent b462e89e90
commit 0fc41962a8

View File

@@ -7,21 +7,43 @@
Entries may not always be in chronological/commit order.
See license at the end of file. */
2025-01-18 04:58 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
2025-01-18 04:59 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbssl/bio.c
! added missing BIO_free() call in HB_BIO destructor
! fixed BIO_free() function to properly operate on HB_BIO structure
* contrib/hbssl/evp.c
! fixed EVP_PKEY_free() to work with Harbour GC pointer items instead of
raw pointer items
* contrib/hbssl/evpciph.c
! accept EVP_KEY Harbour pointer items in EVP_SealInit()
! fixed EVP_SealInit() and EVP_OpenInit() to work with Harbour GC pointer
items instead of raw pointer items
* contrib/hbssl/hbssl.h
* contrib/hbssl/rsa.c
* contrib/hbssl/evppkey.c
! accept EVP_KEY Harbour pointer items in EVP_PKEY_assign_RSA()
+ added new C functions:
void hb_RSA_par_free( int iParam );
EVP_PKEY * hb_EVP_PKEY_get( PHB_ITEM pItem );
void hb_EVP_PKEY_free( PHB_ITEM pItem );
; above are only few fixes for chosen problems and still there are many others
; most of HBSSL code should be rewritten to work with OpenSSL 3.0 API
* contrib/hbssl/evppkey.c
! fixed EVP_PKEY_assign_RSA to work with RSA Harbour GC pointer
item instead of raw pointer items
* contrib/hbssl/pem.c
! redirect old dummy functions to current ones using Harbour GC pointer
items:
PEM_read_bio_PrivateKey() => PEM_read_PrivateKey()
PEM_read_bio_PUBKEY() => PEM_read_PUBKEY()
PEM_read_bio_X509() => PEM_read_X509()
PEM_read_bio_X509_AUX() => PEM_read_X509_AUX()
Now they should work.
; above are only few fixes for chosen problems and still there are many
others, most of HBSSL code should be rewritten from scratch to work
with OpenSSL 3.x API
2025-01-16 01:00 UTC+0100 Fazio Diego (diegohfazio gmail.com)
* contrib/hbcurl/hbcurl.ch