summaryrefslogtreecommitdiffstats
path: root/doc/man3/ECDSA_SIG_new.pod
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man3/ECDSA_SIG_new.pod')
-rw-r--r--doc/man3/ECDSA_SIG_new.pod2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/man3/ECDSA_SIG_new.pod b/doc/man3/ECDSA_SIG_new.pod
index 8d35c9e5f9..9d3cdceeab 100644
--- a/doc/man3/ECDSA_SIG_new.pod
+++ b/doc/man3/ECDSA_SIG_new.pod
@@ -139,6 +139,7 @@ specific)
int ret;
ECDSA_SIG *sig;
EC_KEY *eckey;
+
eckey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
if (eckey == NULL)
/* error */
@@ -156,6 +157,7 @@ or using ECDSA_sign():
unsigned char *buffer, *pp;
int buf_len;
+
buf_len = ECDSA_size(eckey);
buffer = OPENSSL_malloc(buf_len);
pp = buffer;