summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-05-31 19:05:07 +0000
committermiod <miod@openbsd.org>2014-05-31 19:05:07 +0000
commit6769efedef8a3100324d07639d111812bd350031 (patch)
treec1f83ab3c35af9d4d0770014c2afd9de5632b751 /lib/libssl/src
parentcopy a comment placed in other files; req from miod (diff)
downloadwireguard-openbsd-6769efedef8a3100324d07639d111812bd350031.tar.xz
wireguard-openbsd-6769efedef8a3100324d07639d111812bd350031.zip
Add a comment documenting where libssl depends upon the current (objectionable)
behaviour of this code, to prevent people from blindly changing it.
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/asn1/a_int.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libssl/src/crypto/asn1/a_int.c b/lib/libssl/src/crypto/asn1/a_int.c
index 881f08a7669..2c1e38ac1a6 100644
--- a/lib/libssl/src/crypto/asn1/a_int.c
+++ b/lib/libssl/src/crypto/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);