aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openssl/README19
1 files changed, 19 insertions, 0 deletions
diff --git a/openssl/README b/openssl/README
index 8eb4e953..fed3487e 100644
--- a/openssl/README
+++ b/openssl/README
@@ -492,3 +492,22 @@ strspn() hackery to ASID code so it can tolerate looser input.
I've seen occasional printouts of what look like empty address
extensions, need to check that those really are empty (as opposed to
just a printout bug that's aborting i2r...).
+
+
+
+asid v2i is losing on ranges because the ASN1_INTEGER reader code
+doesn't like our punctuation. Simplest answer would be to use
+strtol() to read the number then convert it with ASN1_INTEGER_set(),
+which would work fine for now but won't work with 32-bit AS numbers
+(ASN1_INTEGER_set() wants long, not unsigned long).
+
+Less efficient answer would be to strdup() the substring we want, etc.
+
+Scary efficient answer would be to clone ASN1_INTEGER_set() for
+unsigned long.
+
+While efficiency is tempting, it's probably misguided in this case.
+At the moment we are just dealing with ASN.1 integers at a fairly
+abstract level and don't care a whit about machine representation,
+which is probably the right thing since the user only cares about
+ASN.1 and text. So strdup() is probably the right answer.