diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-08-30 16:14:29 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-08-30 16:14:29 +0000 |
commit | 7df1c720f60ad3813cc88607c4520da031e41e88 (patch) | |
tree | c45d2b02b837f2b503807989a4889a4ce7c5a0ad /crypto/asn1/a_enum.c | |
parent | b3756cf0e9622a4bbda5e4c417248255ba9daaf2 (diff) |
Fix typo in i2d_ASN1_ENUMERATED
Fix bug in read only memory BIOs so BIO_reset() works.
Add sign and verify options to dgst utility, need
to update docs.
Diffstat (limited to 'crypto/asn1/a_enum.c')
-rw-r--r-- | crypto/asn1/a_enum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_enum.c b/crypto/asn1/a_enum.c index afd8e9ab37..1428d1df7a 100644 --- a/crypto/asn1/a_enum.c +++ b/crypto/asn1/a_enum.c @@ -79,7 +79,7 @@ int i2d_ASN1_ENUMERATED(ASN1_ENUMERATED *a, unsigned char **pp) len = i2c_ASN1_INTEGER(a, NULL); ret=ASN1_object_size(0,len,V_ASN1_ENUMERATED); if(pp) { - ASN1_put_object(pp,0,ret,V_ASN1_ENUMERATED,V_ASN1_UNIVERSAL); + ASN1_put_object(pp,0,len,V_ASN1_ENUMERATED,V_ASN1_UNIVERSAL); i2c_ASN1_INTEGER(a, pp); } return ret; |