| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fe3818e commit 721ebf0
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2121,15 +2121,15 @@ static Local<Object> X509ToObject(Environment* env, X509* cert) { | |||
| 2121 | 2121 | rsa.reset(); | |
| 2122 | 2122 | ec.reset(); | |
| 2123 | 2123 | ||
| 2124 | - ASN1_TIME_print(bio.get(), X509_get_notBefore(cert)); | ||
| 2124 | + ASN1_TIME_print(bio.get(), X509_get0_notBefore(cert)); | ||
| 2125 | 2125 | BIO_get_mem_ptr(bio.get(), &mem); | |
| 2126 | 2126 | info->Set(context, env->valid_from_string(), | |
| 2127 | 2127 | String::NewFromUtf8(env->isolate(), mem->data, | |
| 2128 | 2128 | NewStringType::kNormal, | |
| 2129 | 2129 | mem->length).ToLocalChecked()).Check(); | |
| 2130 | 2130 | USE(BIO_reset(bio.get())); | |
| 2131 | 2131 | ||
| 2132 | - ASN1_TIME_print(bio.get(), X509_get_notAfter(cert)); | ||
| 2132 | + ASN1_TIME_print(bio.get(), X509_get0_notAfter(cert)); | ||
| 2133 | 2133 | BIO_get_mem_ptr(bio.get(), &mem); | |
| 2134 | 2134 | info->Set(context, env->valid_to_string(), | |
| 2135 | 2135 | String::NewFromUtf8(env->isolate(), mem->data, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,6 +35,10 @@ | |||
| 35 | 35 | ||
| 36 | 36 | #include <openssl/err.h> | |
| 37 | 37 | #include <openssl/ssl.h> | |
| 38 | + #include <openssl/bn.h> | ||
| 39 | + #include <openssl/dh.h> | ||
| 40 | + #include <openssl/ec.h> | ||
| 41 | + #include <openssl/rsa.h> | ||
| 38 | 42 | ||
| 39 | 43 | namespace node { | |
| 40 | 44 | namespace crypto { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments