Giter Site home page Giter Site logo

Comments (7)

ruomad avatar ruomad commented on August 17, 2024

Hello,
Would you consider trying the patch I submitted as a PR ?
It works when I test compiling against 14-CURRENT/OpenSSL 3.0.9
Bruno

from libpki.

kto2038 avatar kto2038 commented on August 17, 2024

The build still fails with a similar message.

openssl_hsm_pkey.c: In function ‘_pki_rsakey_new’:
openssl_hsm_pkey.c:170:5: error: ‘RSA_new’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  170 |     if ((rsa = RSA_new()) == NULL) {
      |     ^~
compilation terminated due to -Wfatal-errors.

from libpki.

ruomad avatar ruomad commented on August 17, 2024

You have to allow DEPRECATED warnings, there are still a lot of them...
(You compiled with -Werror=deprecated-declarations)

from libpki.

kto2038 avatar kto2038 commented on August 17, 2024

Thank you, @ruomad .
The message disappeared, but another message appeared as below.

$ CFLAGS=-Wno-deprecated-declarations ./configure
$ make

...

openssl_hsm_pkey.c: In function ‘OPENSSL_HSM_write_bio_PrivateKey’:
openssl_hsm_pkey.c:917:65: error: ‘kstr’ undeclared (first use in this function)
  917 |                 EVP_PKEY_get1_EC_KEY(x), enc, (unsigned char *) kstr, klen, cb, u);
      |                                                                 ^~~~
compilation terminated due to -Wfatal-errors.

from libpki.

ruomad avatar ruomad commented on August 17, 2024

Hum.
Are you trying to compile the current version (my port only builds version 0.9.2 with the openssl3 patch, not the current).
On which platform (I'm running FreeBSD) ?
Which configure options ?

from libpki.

ruomad avatar ruomad commented on August 17, 2024

Obviously a typo, could you try this

diff -Nru libpki/src/drivers/openssl/openssl_hsm_pkey.c libpki-0.9.9-g020cc96/src/drivers/openssl/openssl_hsm_pkey.c
--- libpki/src/drivers/openssl/openssl_hsm_pkey.c       2023-08-16 12:50:17.983212000 +0200
+++ libpki-0.9.9-g020cc96/src/drivers/openssl/openssl_hsm_pkey.c        2023-08-16 12:54:33.420170000 +0200
@@ -914,7 +914,7 @@
         case EVP_PKEY_EC: {
 # if OPENSSL_VERSION_NUMBER >= 0x30000000L
             ret = PEM_write_bio_ECPrivateKey(bp,
-                EVP_PKEY_get1_EC_KEY(x), enc, (unsigned char *) kstr, klen, cb, u);
+                EVP_PKEY_get1_EC_KEY(x), enc, (unsigned char *) out_buffer, klen, cb, u);
 # elif OPENSSL_VERSION_NUMBER < 0x1010000fL
             ret = PEM_write_bio_ECPrivateKey(bp,
                 x->pkey.ec, enc, (unsigned char *) out_buffer, klen, cb, u);

from libpki.

kto2038 avatar kto2038 commented on August 17, 2024

It seems that support for OpenSSL 3 is still in progress, so I would like to wait for a while.

from libpki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.