Skip to content
Snippets Groups Projects
Commit cd366cf7 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

print out subgroup order if present

parent a59163f6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment