Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Use EC_F_EC_POINT_GET_AFFINE_COORDINATES for condition
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Jun 13, 2019
1 parent 2cb8e97 commit 1ba5c02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ec/ec_jwk.cpp
@@ -1,3 +1,4 @@
#include <openssl/ec.h>
#include "ec_jwk.h"

Handle<JwkEc> JwkEc::From(Handle<ScopedEVP_PKEY> pkey, int &key_type) {
Expand Down Expand Up @@ -39,7 +40,7 @@ Handle<JwkEc> JwkEc::From(Handle<ScopedEVP_PKEY> pkey, int &key_type) {

LOG_INFO("Get public key");

#if NODE_MODULE_VERSION < 60 || OPENSSL_1_0_2
#if EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP
#define EC_POINT_GET_AFFINE_COORDINATES EC_POINT_get_affine_coordinates_GFp
#else
#define EC_POINT_GET_AFFINE_COORDINATES EC_POINT_get_affine_coordinates
Expand Down

0 comments on commit 1ba5c02

Please sign in to comment.