Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2014-07-03 00:22:40 +0400
committerAdam Langley <agl@google.com>2014-07-03 01:06:57 +0400
commitd9704888629104561f8c46f5a5328da9657e44bf (patch)
treecd2e1758114dac78331fc1b6d2ab438bee0cd64b
parent4c852c5363cfe6fa40fa6c1bac05ee94b407730a (diff)
Typo in EVP_PKEY_asn1_find_str.
Other importing an EC PRIVATE KEY doesn't work. Change-Id: I58b4e88d287cd7fc772a1958df5878ecff1c5b06 Reviewed-on: https://boringssl-review.googlesource.com/1090 Reviewed-by: Adam Langley <agl@google.com>
-rw-r--r--crypto/evp/evp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/evp.c b/crypto/evp/evp.c
index 1d6fd8c9..3871859e 100644
--- a/crypto/evp/evp.c
+++ b/crypto/evp/evp.c
@@ -335,7 +335,7 @@ const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find_str(ENGINE **pengine,
return &rsa_asn1_meth;
} else if (len == 4 && memcmp(name, "HMAC", 4) == 0) {
return &hmac_asn1_meth;
- } if (len == 2 && memcmp(name, "EC", 4) == 0) {
+ } if (len == 2 && memcmp(name, "EC", 2) == 0) {
return &ec_asn1_meth;
}
return NULL;