Lines Matching refs:ext_key_usage
202 mbedtls_asn1_sequence *ext_key_usage; /* extended key usages */ member
310 mbedtls_asn1_sequence *ext_key_usage; in main() local
364 opt.ext_key_usage = DFL_EXT_KEY_USAGE; in main()
500 mbedtls_asn1_sequence **tail = &opt.ext_key_usage; in main()
507 ext_key_usage = mbedtls_calloc(1, sizeof(mbedtls_asn1_sequence)); in main()
508 ext_key_usage->buf.tag = MBEDTLS_ASN1_OID; in main()
510 SET_OID(ext_key_usage->buf, MBEDTLS_OID_SERVER_AUTH); in main()
512 SET_OID(ext_key_usage->buf, MBEDTLS_OID_CLIENT_AUTH); in main()
514 SET_OID(ext_key_usage->buf, MBEDTLS_OID_CODE_SIGNING); in main()
516 SET_OID(ext_key_usage->buf, MBEDTLS_OID_EMAIL_PROTECTION); in main()
518 SET_OID(ext_key_usage->buf, MBEDTLS_OID_TIME_STAMPING); in main()
520 SET_OID(ext_key_usage->buf, MBEDTLS_OID_OCSP_SIGNING); in main()
522 SET_OID(ext_key_usage->buf, MBEDTLS_OID_ANY_EXTENDED_KEY_USAGE); in main()
528 *tail = ext_key_usage; in main()
529 tail = &ext_key_usage->next; in main()
942 if (opt.ext_key_usage) { in main()
946 ret = mbedtls_x509write_crt_set_ext_key_usage(&crt, opt.ext_key_usage); in main()