Lines Matching refs:x
19 int X509_CRL_set_version(X509_CRL *x, long version) in X509_CRL_set_version() argument
21 if (x == NULL) in X509_CRL_set_version()
23 if (x->crl.version == NULL) { in X509_CRL_set_version()
24 if ((x->crl.version = ASN1_INTEGER_new()) == NULL) in X509_CRL_set_version()
27 if (!ASN1_INTEGER_set(x->crl.version, version)) in X509_CRL_set_version()
29 x->crl.enc.modified = 1; in X509_CRL_set_version()
33 int X509_CRL_set_issuer_name(X509_CRL *x, const X509_NAME *name) in X509_CRL_set_issuer_name() argument
35 if (x == NULL) in X509_CRL_set_issuer_name()
37 if (!X509_NAME_set(&x->crl.issuer, name)) in X509_CRL_set_issuer_name()
39 x->crl.enc.modified = 1; in X509_CRL_set_issuer_name()
43 int X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) in X509_CRL_set1_lastUpdate() argument
45 if (x == NULL || tm == NULL) in X509_CRL_set1_lastUpdate()
47 return ossl_x509_set1_time(&x->crl.enc.modified, &x->crl.lastUpdate, tm); in X509_CRL_set1_lastUpdate()
50 int X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) in X509_CRL_set1_nextUpdate() argument
52 if (x == NULL) in X509_CRL_set1_nextUpdate()
54 return ossl_x509_set1_time(&x->crl.enc.modified, &x->crl.nextUpdate, tm); in X509_CRL_set1_nextUpdate()
142 const ASN1_TIME *X509_REVOKED_get0_revocationDate(const X509_REVOKED *x) in X509_REVOKED_get0_revocationDate() argument
144 return x->revocationDate; in X509_REVOKED_get0_revocationDate()
147 int X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm) in X509_REVOKED_set_revocationDate() argument
149 if (x == NULL || tm == NULL) in X509_REVOKED_set_revocationDate()
151 return ossl_x509_set1_time(NULL, &x->revocationDate, tm); in X509_REVOKED_set_revocationDate()
154 const ASN1_INTEGER *X509_REVOKED_get0_serialNumber(const X509_REVOKED *x) in X509_REVOKED_get0_serialNumber() argument
156 return &x->serialNumber; in X509_REVOKED_get0_serialNumber()
159 int X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial) in X509_REVOKED_set_serialNumber() argument
163 if (x == NULL) in X509_REVOKED_set_serialNumber()
165 in = &x->serialNumber; in X509_REVOKED_set_serialNumber()