diff options
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/x509v3/pcy_data.c')
| -rw-r--r-- | Cryptlib/OpenSSL/crypto/x509v3/pcy_data.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Cryptlib/OpenSSL/crypto/x509v3/pcy_data.c b/Cryptlib/OpenSSL/crypto/x509v3/pcy_data.c index 0a6b83bb..90e9970e 100644 --- a/Cryptlib/OpenSSL/crypto/x509v3/pcy_data.c +++ b/Cryptlib/OpenSSL/crypto/x509v3/pcy_data.c @@ -83,17 +83,19 @@ void policy_data_free(X509_POLICY_DATA *data) * source. */ -X509_POLICY_DATA *policy_data_new(POLICYINFO *policy, ASN1_OBJECT *id, - int crit) +X509_POLICY_DATA *policy_data_new(POLICYINFO *policy, + const ASN1_OBJECT *cid, int crit) { X509_POLICY_DATA *ret; - if (!policy && !id) + ASN1_OBJECT *id; + if (!policy && !cid) return NULL; - if (id) { - id = OBJ_dup(id); + if (cid) { + id = OBJ_dup(cid); if (!id) return NULL; - } + } else + id = NULL; ret = OPENSSL_malloc(sizeof(X509_POLICY_DATA)); if (!ret) return NULL; |
