Permalink
Browse files

hopefully should fix x509 built without ecdsa

  • Loading branch information...
1 parent 318168a commit 988ecc26edf397abf82dca7217a0f6234b7cf4aa @dekz committed May 12, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/dx509.cc
View
@@ -135,10 +135,12 @@ Handle<Value> DX509::parseCert(const Arguments &args) {
RSA_free(rsa);
} else if (pkey->type == EVP_PKEY_EC) {
+#ifndef WITH_ECDSA
EC_KEY *ec_key = EVP_PKEY_get1_EC_KEY(pkey);
pub_str = String::New("");
EC_KEY_free(ec_key);
+#endif
} else {
pub_str = String::New("");
}

0 comments on commit 988ecc2

Please sign in to comment.