Initial idea of openssl-1.1.0 compatibility (still missing some magic around certificates)

This commit is contained in:
Jakub Jelen
2017-02-20 11:09:20 +01:00
parent d5283fffae
commit bd351261ec
5 changed files with 89 additions and 6 deletions
+2 -2
View File
@@ -42,6 +42,7 @@
#include <windows.h>
#endif
#include "openssl-compat.h"
#include <openssl/des.h>
#include <openssl/pem.h>
#include <openssl/pkcs12.h>
@@ -234,8 +235,7 @@ static bool generate_key(ykpiv_state *state, const char *slot,
goto generate_out;
}
rsa->n = bignum_n;
rsa->e = bignum_e;
RSA_set0_key(rsa, bignum_n, bignum_e, NULL);
EVP_PKEY_set1_RSA(public_key, rsa);
} else if(algorithm == algorithm_arg_ECCP256 || algorithm == algorithm_arg_ECCP384) {
EC_GROUP *group;