Lines Matching refs:x

203 void dump_cert_text(BIO *out, X509 *x)

205 print_name(out, "subject=", X509_get_subject_name(x));
206 print_name(out, "issuer=", X509_get_issuer_name(x));
1280 int copy_extensions(X509 *x, X509_REQ *req, int copy_type)
1285 if (x == NULL || req == NULL)
1294 int idx = X509_get_ext_by_OBJ(x, obj, -1);
1303 X509_EXTENSION_free(X509_delete_ext(x, idx));
1304 idx = X509_get_ext_by_OBJ(x, obj, -1);
1307 if (!X509_add_ext(x, ext, -1))
1407 BIO_printf(out, "0x%02X,", buffer[i]);
1409 BIO_printf(out, "0x%02X", buffer[i]);
1424 BIO_printf(out, "0x%02X, ", d[i]);
1426 BIO_printf(out, "0x%02X", d[i]);
2214 int check_cert_attributes(BIO *bio, X509 *x, const char *checkhost,
2223 if (x == NULL)
2227 valid_host = X509_check_host(x, checkhost, 0, 0, NULL);
2235 valid_mail = X509_check_email(x, checkemail, 0, 0);
2243 valid_ip = X509_check_ip_asc(x, checkip, 0);
2273 static int do_x509_init(X509 *x, STACK_OF(OPENSSL_STRING) *opts)
2283 if (x509_ctrl_string(x, opt) <= 0) {
2293 static int do_x509_req_init(X509_REQ *x, STACK_OF(OPENSSL_STRING) *opts)
2303 if (x509_req_ctrl_string(x, opt) <= 0) {
2409 int do_X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const char *md,
2416 rv = (X509_REQ_sign_ctx(x, mctx) > 0);
2422 int do_X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const char *md,
2429 rv = (X509_CRL_sign_ctx(x, mctx) > 0);
2438 int do_X509_verify(X509 *x, EVP_PKEY *pkey, STACK_OF(OPENSSL_STRING) *vfyopts)
2442 if (do_x509_init(x, vfyopts) > 0)
2443 rv = X509_verify(x, pkey);
2453 int do_X509_REQ_verify(X509_REQ *x, EVP_PKEY *pkey,
2458 if (do_x509_req_init(x, vfyopts) > 0)
2459 rv = X509_REQ_verify_ex(x, pkey, app_get0_libctx(), app_get0_propq());
2518 X509 *x;
2526 x = X509_STORE_CTX_get_current_cert(ctx);
2527 crldp = X509_get_ext_d2i(x, NID_crl_distribution_points, NULL, NULL);
2535 crldp = X509_get_ext_d2i(x, NID_freshest_crl, NULL, NULL);
3354 int set_cert_times(X509 *x, const char *startdate, const char *enddate,
3362 if (X509_gmtime_adj(X509_getm_notBefore(x), 0) == NULL) {
3367 if (!ASN1_TIME_set_string_X509(X509_getm_notBefore(x), startdate)) {
3377 if (X509_time_adj_ex(X509_getm_notAfter(x), days, 0, NULL) == NULL) {
3381 } else if (!ASN1_TIME_set_string_X509(X509_getm_notAfter(x), enddate)) {
3385 if (ASN1_TIME_compare(X509_get0_notAfter(x), X509_get0_notBefore(x)) < 0) {