mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
src: don't use deprecated OpenSSL APIs
The extra headers are needed when deprecated APIs are disabled as ssl.h no longer includes them implicitly. PR-URL: https://github.com/nodejs/node/pull/30812 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
4dc9d8db13
commit
ccf0917aef
2 files changed
+6
-2
No files matched your search
+2
-2
@@ -2118,7 +2118,7 @@ static Local<Object> X509ToObject(Environment* env, X509* cert) {
|
||||
rsa.reset();
|
||||
ec.reset();
|
||||
|
||||
ASN1_TIME_print(bio.get(), X509_get_notBefore(cert));
|
||||
ASN1_TIME_print(bio.get(), X509_get0_notBefore(cert));
|
||||
BIO_get_mem_ptr(bio.get(), &mem);
|
||||
info->Set(context, env->valid_from_string(),
|
||||
String::NewFromUtf8(env->isolate(), mem->data,
|
||||
@@ -2126,7 +2126,7 @@ static Local<Object> X509ToObject(Environment* env, X509* cert) {
|
||||
mem->length).ToLocalChecked()).Check();
|
||||
USE(BIO_reset(bio.get()));
|
||||
|
||||
ASN1_TIME_print(bio.get(), X509_get_notAfter(cert));
|
||||
ASN1_TIME_print(bio.get(), X509_get0_notAfter(cert));
|
||||
BIO_get_mem_ptr(bio.get(), &mem);
|
||||
info->Set(context, env->valid_to_string(),
|
||||
String::NewFromUtf8(env->isolate(), mem->data,
|
||||
|
||||
@@ -35,6 +35,10 @@
|
||||
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/bn.h>
|
||||
#include <openssl/dh.h>
|
||||
#include <openssl/ec.h>
|
||||
#include <openssl/rsa.h>
|
||||
|
||||
namespace node {
|
||||
namespace crypto {
|
||||
|
||||
Reference in new issue
Block a user