GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: don't use deprecated OpenSSL APIs · nodejs/node@a5a09ac

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_crypto.cc
    • node_crypto.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_crypto.cc‎

Copy file name to clipboardExpand all lines: src/node_crypto.cc
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,15 +2118,15 @@ static Local<Object> X509ToObject(Environment* env, X509* cert) {
21182118
rsa.reset();
21192119
ec.reset();
21202120

2121-
ASN1_TIME_print(bio.get(), X509_get_notBefore(cert));
2121+
ASN1_TIME_print(bio.get(), X509_get0_notBefore(cert));
21222122
BIO_get_mem_ptr(bio.get(), &mem);
21232123
info->Set(context, env->valid_from_string(),
21242124
String::NewFromUtf8(env->isolate(), mem->data,
21252125
NewStringType::kNormal,
21262126
mem->length).ToLocalChecked()).Check();
21272127
USE(BIO_reset(bio.get()));
21282128

2129-
ASN1_TIME_print(bio.get(), X509_get_notAfter(cert));
2129+
ASN1_TIME_print(bio.get(), X509_get0_notAfter(cert));
21302130
BIO_get_mem_ptr(bio.get(), &mem);
21312131
info->Set(context, env->valid_to_string(),
21322132
String::NewFromUtf8(env->isolate(), mem->data,
Collapse file

‎src/node_crypto.h‎

Copy file name to clipboardExpand all lines: src/node_crypto.h
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535

3636
#include <openssl/err.h>
3737
#include <openssl/ssl.h>
38+
#include <openssl/bn.h>
39+
#include <openssl/dh.h>
40+
#include <openssl/ec.h>
41+
#include <openssl/rsa.h>
3842

3943
namespace node {
4044
namespace crypto {

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.