diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2004-03-08 14:56:31 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2004-03-08 14:56:31 +0100 |
commit | edec614efddb8dc275f5537a8af98e2a1cac91b5 (patch) | |
tree | 162cfffd7d06d312594ad66612a48700dd377cda /crypto/x509v3/v3_int.c | |
parent | typo (diff) | |
download | openssl-edec614efddb8dc275f5537a8af98e2a1cac91b5.tar.xz openssl-edec614efddb8dc275f5537a8af98e2a1cac91b5.zip |
Support for inhibitAnyPolicy extension.
Diffstat (limited to 'crypto/x509v3/v3_int.c')
-rw-r--r-- | crypto/x509v3/v3_int.c | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/crypto/x509v3/v3_int.c b/crypto/x509v3/v3_int.c index f34cbfb731..a352f68a99 100644 --- a/crypto/x509v3/v3_int.c +++ b/crypto/x509v3/v3_int.c @@ -3,7 +3,7 @@ * project 1999. */ /* ==================================================================== - * Copyright (c) 1999 The OpenSSL Project. All rights reserved. + * Copyright (c) 1999-2004 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -61,9 +61,22 @@ #include <openssl/x509v3.h> X509V3_EXT_METHOD v3_crl_num = { -NID_crl_number, 0, ASN1_ITEM_ref(ASN1_INTEGER), -0,0,0,0, -(X509V3_EXT_I2S)i2s_ASN1_INTEGER, -0, -0,0,0,0, NULL}; + NID_crl_number, 0, ASN1_ITEM_ref(ASN1_INTEGER), + 0,0,0,0, + (X509V3_EXT_I2S)i2s_ASN1_INTEGER, + 0, + 0,0,0,0, NULL}; + +void * s2i_asn1_int(X509V3_EXT_METHOD *meth, X509V3_CTX *ctx, char *value) + { + return s2i_ASN1_INTEGER(meth, value); + } + +X509V3_EXT_METHOD v3_inhibit_anyp = { + NID_inhibit_any_policy, 0, ASN1_ITEM_ref(ASN1_INTEGER), + 0,0,0,0, + (X509V3_EXT_I2S)i2s_ASN1_INTEGER, + (X509V3_EXT_S2I)s2i_asn1_int, + 0,0,0,0, NULL}; + |