aboutsummaryrefslogtreecommitdiff
path: root/openssl/trunk/crypto/x509v3/v3_asid.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2006-07-22 05:31:29 +0000
committerRob Austein <sra@hactrn.net>2006-07-22 05:31:29 +0000
commit620fb77d27bd4296b7268e083c050b6b25f2fb89 (patch)
tree7cf40cf4345ac92481cdc05bcdfb6207a68a4a7a /openssl/trunk/crypto/x509v3/v3_asid.c
parentb3d07827ddcd1aaee6954845872b0863e468651c (diff)
Be a bit more forgiving of whitespace.
svn path=/openssl/trunk/crypto/x509v3/v3_asid.c; revision=47
Diffstat (limited to 'openssl/trunk/crypto/x509v3/v3_asid.c')
-rw-r--r--openssl/trunk/crypto/x509v3/v3_asid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openssl/trunk/crypto/x509v3/v3_asid.c b/openssl/trunk/crypto/x509v3/v3_asid.c
index 9a3b6122..7fe5c852 100644
--- a/openssl/trunk/crypto/x509v3/v3_asid.c
+++ b/openssl/trunk/crypto/x509v3/v3_asid.c
@@ -23,6 +23,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include <assert.h>
#include "cryptlib.h"
#include <openssl/conf.h>
@@ -402,7 +403,7 @@ static void *v2i_ASIdentifiers(struct v3_ext_method *method,
}
if ((s = strchr(val->value, '-')) == NULL) {
max = NULL;
- } else if ((max = s2i_ASN1_INTEGER(NULL, s + 1)) == NULL) {
+ } else if ((max = s2i_ASN1_INTEGER(NULL, s + strspn(s, "- \t"))) == NULL) {
X509V3err(X509V3_F_V2I_ASIdentifiers, X509V3_R_INVALID_ASRANGE);
X509V3_conf_err(val);
goto err;