Comments (7)
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.
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.
You have to allow DEPRECATED warnings, there are still a lot of them...
(You compiled with -Werror=deprecated-declarations)
from libpki.
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.
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.
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.
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)
- Fix Includes Issues
- Add ARM support
- Building on CentOS 8
- Introp C#.Net
- Add Support for Public-Key Encryption Functions HOT 1
- remove finger from contrib/libpki.spec.orig HOT 2
- libpki 0.9.2: Building rpm fails on RHEL 9
- Add Support for Post-Quantum Algorithms HOT 1
- Add support for Composite Cryptography HOT 1
- Add support for K-of-N Composite Crypto HOT 1
- Add support for OQS 0.8.0
- Update test infrastructure
- Port LibPKI to OpenSSL 3.x
- Add Support For OQS Provider and OpenSSL 3.x
- PKI_X509_ALGOR_VALUE_new_digest undeclared HOT 1
- Please make LibPKI free software again HOT 2
- LibPKI issue on Debian 12.5.0
- LIBPKI 0.9.0 causes segmentation faults
- Compilation on Arch Linux fails with "openssl_hsm_pkey.c:193:5: error: ‘EVP_PKEY_get1_RSA’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libpki.