projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wp-x86_64.pl: ~10% performance improvement.
[oweals/openssl.git]
/
crypto
/
ec
/
eck_prn.c
diff --git
a/crypto/ec/eck_prn.c
b/crypto/ec/eck_prn.c
index 06de8f3959d57d2bdebe85ea7ab2d5b3c3a414fe..39ce97862dbd44dfa93db5a687d7731ffe33b1fd 100644
(file)
--- a/
crypto/ec/eck_prn.c
+++ b/
crypto/ec/eck_prn.c
@@
-177,6
+177,7
@@
int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off)
{
/* the curve parameter are given by an asn1 OID */
int nid;
{
/* the curve parameter are given by an asn1 OID */
int nid;
+ const char *nname;
if (!BIO_indent(bp, off, 128))
goto err;
if (!BIO_indent(bp, off, 128))
goto err;
@@
-184,11
+185,18
@@
int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off)
nid = EC_GROUP_get_curve_name(x);
if (nid == 0)
goto err;
nid = EC_GROUP_get_curve_name(x);
if (nid == 0)
goto err;
-
if (BIO_printf(bp, "ASN1 OID: %s", OBJ_nid2sn(nid)) <= 0)
goto err;
if (BIO_printf(bp, "\n") <= 0)
goto err;
if (BIO_printf(bp, "ASN1 OID: %s", OBJ_nid2sn(nid)) <= 0)
goto err;
if (BIO_printf(bp, "\n") <= 0)
goto err;
+ nname = EC_curve_nid2nist(nid);
+ if (nname)
+ {
+ if (!BIO_indent(bp, off, 128))
+ goto err;
+ if (BIO_printf(bp, "NIST CURVE: %s\n", nname) <= 0)
+ goto err;
+ }
}
else
{
}
else
{