summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-05-31 19:05:08 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-05-31 19:05:08 +0000
commit1c18e1270492d3d494757a0fe4424b9b37b25679 (patch)
treeb68eb7f13977b43ca09895a7baec13dd3fc99382
parent87711ccf5ddb1bb69163731af7a92fded27f9189 (diff)
Add a comment documenting where libssl depends upon the current (objectionable)
behaviour of this code, to prevent people from blindly changing it.
-rw-r--r--lib/libcrypto/asn1/a_int.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libcrypto/asn1/a_int.c b/lib/libcrypto/asn1/a_int.c
index 881f08a7669..2c1e38ac1a6 100644
--- a/lib/libcrypto/asn1/a_int.c
+++ b/lib/libcrypto/asn1/a_int.c
@@ -347,6 +347,7 @@ ASN1_INTEGER_set(ASN1_INTEGER *a, long v)
long d;
a->type = V_ASN1_INTEGER;
+ /* XXX ssl/ssl_asn1.c:i2d_SSL_SESSION() depends upon this bound vae */
if (a->length < (int)(sizeof(long) + 1)) {
free(a->data);
a->data = calloc(1, sizeof(long) + 1);