summaryrefslogtreecommitdiffstats
path: root/crypto/dh
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-10-11 17:44:26 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-10-11 17:44:26 +0000
commitcd366cf7ec34d12e9c588ba487bc332bc67a1fd3 (patch)
tree3843f356785730e3d025583bb71d52dea85abcd6 /crypto/dh
parenta59163f6b6b5b2b7b7a07e0a46587fd1e24fb30a (diff)
print out subgroup order if present
Diffstat (limited to 'crypto/dh')
-rw-r--r--crypto/dh/dh_ameth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/dh/dh_ameth.c b/crypto/dh/dh_ameth.c
index 02ec2d47b4..f3e910e105 100644
--- a/crypto/dh/dh_ameth.c
+++ b/crypto/dh/dh_ameth.c
@@ -343,6 +343,7 @@ static int do_dh_print(BIO *bp, const DH *x, int indent,
}
update_buflen(x->g, &buf_len);
+ update_buflen(x->q, &buf_len);
update_buflen(pub_key, &buf_len);
update_buflen(priv_key, &buf_len);
@@ -370,6 +371,7 @@ static int do_dh_print(BIO *bp, const DH *x, int indent,
if (!ASN1_bn_print(bp,"prime:",x->p,m,indent)) goto err;
if (!ASN1_bn_print(bp,"generator:",x->g,m,indent)) goto err;
+ if (x->q && !ASN1_bn_print(bp,"subgroup order:",x->q,m,indent)) goto err;
if (x->length != 0)
{
BIO_indent(bp, indent, 128);