Lines Matching refs:nid

672 	int nid;  in php_openssl_add_assoc_name_entry()  local
690 nid = OBJ_obj2nid(obj); in php_openssl_add_assoc_name_entry()
693 sname = (char *) OBJ_nid2sn(nid); in php_openssl_add_assoc_name_entry()
695 sname = (char *) OBJ_nid2ln(nid); in php_openssl_add_assoc_name_entry()
2225 int nid; in PHP_FUNCTION() local
2227 nid = OBJ_obj2nid(X509_EXTENSION_get_object(extension)); in PHP_FUNCTION()
2228 if (nid != NID_undef) { in PHP_FUNCTION()
2239 if (nid == NID_subject_alt_name) { in PHP_FUNCTION()
2897 static zend_result php_openssl_csr_add_subj_entry(zval *item, X509_NAME *subj, int nid) in php_openssl_csr_add_subj_entry() argument
2903 if (!X509_NAME_add_entry_by_NID(subj, nid, MBSTRING_UTF8, in php_openssl_csr_add_subj_entry()
2911 nid, ZSTR_VAL(str_item)); in php_openssl_csr_add_subj_entry()
2946 int i, nid; in php_openssl_csr_make() local
2957 int nid = OBJ_txt2nid(ZSTR_VAL(strindex)); in php_openssl_csr_make() local
2958 if (nid != NID_undef) { in php_openssl_csr_make()
2961 if (php_openssl_csr_add_subj_entry(subitem, subj, nid) == FAILURE) { in php_openssl_csr_make()
2965 } else if (php_openssl_csr_add_subj_entry(item, subj, nid) == FAILURE) { in php_openssl_csr_make()
3009 nid = OBJ_txt2nid(type); in php_openssl_csr_make()
3010 if (X509_NAME_get_index_by_NID(subj, nid, -1) >= 0) { in php_openssl_csr_make()
3025 int nid; in php_openssl_csr_make() local
3032 nid = OBJ_txt2nid(ZSTR_VAL(strindex)); in php_openssl_csr_make()
3033 if (nid != NID_undef) { in php_openssl_csr_make()
3038 …if (!X509_REQ_add1_attr_by_NID(csr, nid, MBSTRING_UTF8, (unsigned char*)ZSTR_VAL(str_item), (int)Z… in php_openssl_csr_make()
3040 …php_error_docref(NULL, E_WARNING, "attributes: add_attr_by_NID %d -> %s (failed)", nid, ZSTR_VAL(s… in php_openssl_csr_make()
3052 nid = OBJ_txt2nid(v->name); in php_openssl_csr_make()
3053 if (X509_REQ_get_attr_by_NID(csr, nid, -1) >= 0) { in php_openssl_csr_make()
4388 int nid = OBJ_sn2nid(Z_STRVAL_P(curve_name_zv)); in php_openssl_pkey_init_legacy_ec() local
4389 if (nid == NID_undef) { in php_openssl_pkey_init_legacy_ec()
4394 if (!(group = EC_GROUP_new_by_curve_name(nid))) { in php_openssl_pkey_init_legacy_ec()
4523 int nid = NID_undef; in php_openssl_pkey_init_ec() local
4545 nid = OBJ_sn2nid(Z_STRVAL_P(curve_name_zv)); in php_openssl_pkey_init_ec()
4546 if (nid == NID_undef) { in php_openssl_pkey_init_ec()
4551 if (!(group = EC_GROUP_new_by_curve_name(nid))) { in php_openssl_pkey_init_ec()
4634 nid = EC_GROUP_check_named_curve(group, 0, bctx); in php_openssl_pkey_init_ec()
4638 if (nid != NID_sm2) { in php_openssl_pkey_init_ec()
5166 int nid = OBJ_txt2nid(type_name); in PHP_FUNCTION() local
5167 if (nid != NID_undef) { in PHP_FUNCTION()
5168 base_id = EVP_PKEY_type(nid); in PHP_FUNCTION()
5217 int nid = OBJ_sn2nid(ZSTR_VAL(curve_name)); in PHP_FUNCTION() local
5218 if (nid != NID_undef) { in PHP_FUNCTION()
5219 ASN1_OBJECT *obj = OBJ_nid2obj(nid); in PHP_FUNCTION()
5344 int nid; in PHP_FUNCTION() local
5359 nid = EC_GROUP_get_curve_name(ec_group); in PHP_FUNCTION()
5360 if (nid != NID_undef) { in PHP_FUNCTION()
5361 crv_sn = (char*) OBJ_nid2sn(nid); in PHP_FUNCTION()
5366 obj = OBJ_nid2obj(nid); in PHP_FUNCTION()
7556 sname = OBJ_nid2sn(curves[i].nid);