/openssl/crypto/x509/ |
H A D | x509name.c | 95 || loc < 0) in X509_NAME_get_entry() 108 || loc < 0) in X509_NAME_delete_entry() 115 if (loc == n) in X509_NAME_delete_entry() 119 if (loc != 0) in X509_NAME_delete_entry() 199 if (loc > n) in X509_NAME_add_entry() 200 loc = n; in X509_NAME_add_entry() 201 else if (loc < 0) in X509_NAME_add_entry() 202 loc = n; in X509_NAME_add_entry() 207 if (loc == 0) { in X509_NAME_add_entry() 215 if (loc >= n) { in X509_NAME_add_entry() [all …]
|
H A D | x509_ext.c | 40 X509_EXTENSION *X509_CRL_get_ext(const X509_CRL *x, int loc) in X509_CRL_get_ext() argument 42 return X509v3_get_ext(x->crl.extensions, loc); in X509_CRL_get_ext() 45 X509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc) in X509_CRL_delete_ext() argument 47 return X509v3_delete_ext(x->crl.extensions, loc); in X509_CRL_delete_ext() 87 X509_EXTENSION *X509_get_ext(const X509 *x, int loc) in X509_get_ext() argument 89 return X509v3_get_ext(x->cert_info.extensions, loc); in X509_get_ext() 92 X509_EXTENSION *X509_delete_ext(X509 *x, int loc) in X509_delete_ext() argument 94 return X509v3_delete_ext(x->cert_info.extensions, loc); in X509_delete_ext() 97 int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc) in X509_add_ext() argument 137 return X509v3_get_ext(x->extensions, loc); in X509_REVOKED_get_ext() [all …]
|
H A D | x509_v3.c | 85 if (x == NULL || sk_X509_EXTENSION_num(x) <= loc || loc < 0) in X509v3_get_ext() 88 return sk_X509_EXTENSION_value(x, loc); in X509v3_get_ext() 91 X509_EXTENSION *X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc) in X509v3_delete_ext() argument 95 if (x == NULL || sk_X509_EXTENSION_num(x) <= loc || loc < 0) in X509v3_delete_ext() 97 ret = sk_X509_EXTENSION_delete(x, loc); in X509v3_delete_ext() 102 X509_EXTENSION *ex, int loc) in STACK_OF() 122 if (loc > n) in STACK_OF() 123 loc = n; in STACK_OF() 124 else if (loc < 0) in STACK_OF() 125 loc = n; in STACK_OF() [all …]
|
H A D | x509_req.c | 172 int loc; in X509_REQ_add_extensions_nid() local 177 loc = X509at_get_attr_by_NID(req->req_info.attributes, nid, -1); in X509_REQ_add_extensions_nid() 178 if (loc != -1) { in X509_REQ_add_extensions_nid() 192 X509_ATTRIBUTE *att = X509at_delete_attr(req->req_info.attributes, loc); in X509_REQ_add_extensions_nid() 231 X509_ATTRIBUTE *X509_REQ_get_attr(const X509_REQ *req, int loc) in X509_REQ_get_attr() argument 233 return X509at_get_attr(req->req_info.attributes, loc); in X509_REQ_get_attr() 236 X509_ATTRIBUTE *X509_REQ_delete_attr(X509_REQ *req, int loc) in X509_REQ_delete_attr() argument 244 attr = X509at_delete_attr(req->req_info.attributes, loc); in X509_REQ_delete_attr()
|
H A D | x509_att.c | 56 X509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, int loc) in X509at_get_attr() argument 62 if (sk_X509_ATTRIBUTE_num(x) <= loc || loc < 0) { in X509at_get_attr() 66 return sk_X509_ATTRIBUTE_value(x, loc); in X509at_get_attr() 69 X509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, int loc) in X509at_delete_attr() argument 75 if (sk_X509_ATTRIBUTE_num(x) <= loc || loc < 0) { in X509at_delete_attr() 79 return sk_X509_ATTRIBUTE_delete(x, loc); in X509at_delete_attr()
|
H A D | x509_acert.c | 208 X509_ATTRIBUTE *X509_ACERT_get_attr(const X509_ACERT *x, int loc) in X509_ACERT_get_attr() argument 210 return X509at_get_attr(x->acinfo->attributes, loc); in X509_ACERT_get_attr() 213 X509_ATTRIBUTE *X509_ACERT_delete_attr(X509_ACERT *x, int loc) in X509_ACERT_delete_attr() argument 215 return X509at_delete_attr(x->acinfo->attributes, loc); in X509_ACERT_delete_attr()
|
/openssl/crypto/ocsp/ |
H A D | ocsp_ext.c | 47 X509_EXTENSION *OCSP_REQUEST_get_ext(OCSP_REQUEST *x, int loc) in OCSP_REQUEST_get_ext() argument 49 return X509v3_get_ext(x->tbsRequest.requestExtensions, loc); in OCSP_REQUEST_get_ext() 52 X509_EXTENSION *OCSP_REQUEST_delete_ext(OCSP_REQUEST *x, int loc) in OCSP_REQUEST_delete_ext() argument 54 return X509v3_delete_ext(x->tbsRequest.requestExtensions, loc); in OCSP_REQUEST_delete_ext() 99 X509_EXTENSION *OCSP_ONEREQ_get_ext(OCSP_ONEREQ *x, int loc) in OCSP_ONEREQ_get_ext() argument 101 return X509v3_get_ext(x->singleRequestExtensions, loc); in OCSP_ONEREQ_get_ext() 104 X509_EXTENSION *OCSP_ONEREQ_delete_ext(OCSP_ONEREQ *x, int loc) in OCSP_ONEREQ_delete_ext() argument 106 return X509v3_delete_ext(x->singleRequestExtensions, loc); in OCSP_ONEREQ_delete_ext() 153 X509_EXTENSION *OCSP_BASICRESP_get_ext(OCSP_BASICRESP *x, int loc) in OCSP_BASICRESP_get_ext() argument 209 return X509v3_get_ext(x->singleExtensions, loc); in OCSP_SINGLERESP_get_ext() [all …]
|
/openssl/crypto/cms/ |
H A D | cms_att.c | 86 X509_ATTRIBUTE *CMS_signed_get_attr(const CMS_SignerInfo *si, int loc) in CMS_signed_get_attr() argument 88 return X509at_get_attr(si->signedAttrs, loc); in CMS_signed_get_attr() 91 X509_ATTRIBUTE *CMS_signed_delete_attr(CMS_SignerInfo *si, int loc) in CMS_signed_delete_attr() argument 93 return X509at_delete_attr(si->signedAttrs, loc); in CMS_signed_delete_attr() 156 return X509at_get_attr(si->unsignedAttrs, loc); in CMS_unsigned_get_attr() 161 return X509at_delete_attr(si->unsignedAttrs, loc); in CMS_unsigned_delete_attr() 216 int loc; in cms_attrib_get() local 218 loc = X509at_get_attr_by_NID(attrs, nid, *lastpos); in cms_attrib_get() 219 if (loc < 0) in cms_attrib_get() 222 at = X509at_get_attr(attrs, loc); in cms_attrib_get() [all …]
|
/openssl/crypto/stack/ |
H A D | stack.c | 272 if ((loc >= st->num) || (loc < 0)) { in OPENSSL_sk_insert() 275 memmove(&st->data[loc + 1], &st->data[loc], in OPENSSL_sk_insert() 276 sizeof(st->data[0]) * (st->num - loc)); in OPENSSL_sk_insert() 277 st->data[loc] = data; in OPENSSL_sk_insert() 286 const void *ret = st->data[loc]; in internal_delete() 288 if (loc != st->num - 1) in internal_delete() 289 memmove(&st->data[loc], &st->data[loc + 1], in internal_delete() 290 sizeof(st->data[0]) * (st->num - loc - 1)); in internal_delete() 309 void *OPENSSL_sk_delete(OPENSSL_STACK *st, int loc) in OPENSSL_sk_delete() argument 311 if (st == NULL || loc < 0 || loc >= st->num) in OPENSSL_sk_delete() [all …]
|
/openssl/doc/man3/ |
H A D | X509v3_get_ext_by_NID.pod | 31 X509_EXTENSION *ex, int loc); 37 X509_EXTENSION *X509_get_ext(const X509 *x, int loc); 41 X509_EXTENSION *X509_delete_ext(X509 *x, int loc); 42 int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc); 45 X509_EXTENSION *X509_CRL_get_ext(const X509_CRL *x, int loc); 50 X509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc); 51 int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc); 59 X509_EXTENSION *X509_REVOKED_delete_ext(X509_REVOKED *x, int loc); 66 X509v3_get_ext() retrieves extension I<loc> from I<x>. The index I<loc> 83 If I<loc> is an invalid index value, NULL is returned. [all …]
|
H A D | X509_NAME_add_entry_by_txt.pod | 13 const unsigned char *bytes, int len, int loc, int set); 16 const unsigned char *bytes, int len, int loc, int set); 19 const unsigned char *bytes, int len, int loc, int set); 21 int X509_NAME_add_entry(X509_NAME *name, const X509_NAME_ENTRY *ne, int loc, int set); 23 X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc); 37 added to a position determined by B<loc> and B<set>. 40 to B<name>. The new entry is added to a position determined by B<loc> 45 B<loc>. The deleted entry is returned and must be freed up. 61 The B<loc> and B<set> parameters determine where a new entry should 62 be added. For almost all applications B<loc> can be set to -1 and B<set> [all …]
|
H A D | X509_ACERT_add1_attr.pod | 23 X509_ATTRIBUTE *X509_ACERT_delete_attr(X509_ACERT *x, int loc); 37 X509_ACERT_delete_attr() will delete the I<loc>th attribute from I<x> and 38 return a pointer to it or NULL if there are fewer than I<loc> attributes
|
H A D | EVP_PKEY_get_attr.pod | 21 X509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *key, int loc); 22 X509_ATTRIBUTE *EVP_PKEY_delete_attr(EVP_PKEY *key, int loc); 49 EVP_PKEY_get_attr() returns the B<X509_ATTRIBUTE> object at index I<loc> in the 50 I<key> attribute list. I<loc> should be in the range from 0 to 53 EVP_PKEY_delete_attr() removes the B<X509_ATTRIBUTE> object at index I<loc> in
|
H A D | X509_REQ_get_attr.pod | 20 X509_ATTRIBUTE *X509_REQ_get_attr(const X509_REQ *req, int loc); 21 X509_ATTRIBUTE *X509_REQ_delete_attr(X509_REQ *req, int loc); 46 X509_REQ_get_attr() returns the B<X509_ATTRIBUTE> object at index I<loc> in the 47 I<req> attribute list. I<loc> should be in the range from 0 to 50 X509_REQ_delete_attr() removes the B<X509_ATTRIBUTE> object at index I<loc> in
|
H A D | CMS_signed_get_attr.pod | 28 X509_ATTRIBUTE *CMS_signed_get_attr(const CMS_SignerInfo *si, int loc); 29 X509_ATTRIBUTE *CMS_signed_delete_attr(CMS_SignerInfo *si, int loc); 49 X509_ATTRIBUTE *CMS_unsigned_get_attr(const CMS_SignerInfo *si, int loc); 50 X509_ATTRIBUTE *CMS_unsigned_delete_attr(CMS_SignerInfo *si, int loc); 85 CMS_signed_get_attr() returns the B<X509_ATTRIBUTE> object at index I<loc> in the 86 I<si> signed attribute list. I<loc> should be in the range from 0 to 89 CMS_signed_delete_attr() removes the B<X509_ATTRIBUTE> object at index I<loc> in
|
H A D | X509_ACERT_get_attr.pod | 15 X509_ATTRIBUTE *X509_ACERT_get_attr(const X509_ACERT *x, int loc); 23 X509_ACERT_get0_attr() retrieves the I<loc>th B<X509_ATTRIBUTE> from an
|
H A D | X509_NAME_get_index_by_NID.pod | 18 X509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name, int loc); 40 corresponding to index B<loc>. Acceptable values for B<loc> run from
|
H A D | X509_ATTRIBUTE.pod | 29 X509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, int loc); 30 X509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, int loc); 112 X509at_get_attr() returns the B<X509_ATTRIBUTE> object at index I<loc> in the 113 list of attributes I<x>. I<loc> should be in the range from 0 to 116 X509at_delete_attr() removes the B<X509_ATTRIBUTE> object at index I<loc> in
|
/openssl/crypto/ts/ |
H A D | ts_req_utils.c | 165 X509_EXTENSION *TS_REQ_get_ext(TS_REQ *a, int loc) in TS_REQ_get_ext() argument 167 return X509v3_get_ext(a->extensions, loc); in TS_REQ_get_ext() 170 X509_EXTENSION *TS_REQ_delete_ext(TS_REQ *a, int loc) in TS_REQ_delete_ext() argument 172 return X509v3_delete_ext(a->extensions, loc); in TS_REQ_delete_ext() 175 int TS_REQ_add_ext(TS_REQ *a, X509_EXTENSION *ex, int loc) in TS_REQ_add_ext() argument 177 return X509v3_add_ext(&a->extensions, ex, loc) != NULL; in TS_REQ_add_ext()
|
H A D | ts_rsp_utils.c | 326 X509_EXTENSION *TS_TST_INFO_get_ext(TS_TST_INFO *a, int loc) in TS_TST_INFO_get_ext() argument 328 return X509v3_get_ext(a->extensions, loc); in TS_TST_INFO_get_ext() 331 X509_EXTENSION *TS_TST_INFO_delete_ext(TS_TST_INFO *a, int loc) in TS_TST_INFO_delete_ext() argument 333 return X509v3_delete_ext(a->extensions, loc); in TS_TST_INFO_delete_ext() 336 int TS_TST_INFO_add_ext(TS_TST_INFO *a, X509_EXTENSION *ex, int loc) in TS_TST_INFO_add_ext() argument 338 return X509v3_add_ext(&a->extensions, ex, loc) != NULL; in TS_TST_INFO_add_ext()
|
/openssl/demos/cms/ |
H A D | cms_ver.c | 28 int i, loc; in print_signingTime() local 34 loc = CMS_signed_get_attr_by_NID(si, NID_pkcs9_signingTime, -1); in print_signingTime() 35 attr = CMS_signed_get_attr(si, loc); in print_signingTime()
|
/openssl/include/openssl/ |
H A D | ocsp.h.in | 308 X509_EXTENSION *OCSP_REQUEST_get_ext(OCSP_REQUEST *x, int loc); 309 X509_EXTENSION *OCSP_REQUEST_delete_ext(OCSP_REQUEST *x, int loc); 314 int OCSP_REQUEST_add_ext(OCSP_REQUEST *x, X509_EXTENSION *ex, int loc); 320 X509_EXTENSION *OCSP_ONEREQ_get_ext(OCSP_ONEREQ *x, int loc); 321 X509_EXTENSION *OCSP_ONEREQ_delete_ext(OCSP_ONEREQ *x, int loc); 325 int OCSP_ONEREQ_add_ext(OCSP_ONEREQ *x, X509_EXTENSION *ex, int loc); 333 X509_EXTENSION *OCSP_BASICRESP_get_ext(OCSP_BASICRESP *x, int loc); 334 X509_EXTENSION *OCSP_BASICRESP_delete_ext(OCSP_BASICRESP *x, int loc); 339 int OCSP_BASICRESP_add_ext(OCSP_BASICRESP *x, X509_EXTENSION *ex, int loc); 347 X509_EXTENSION *OCSP_SINGLERESP_get_ext(OCSP_SINGLERESP *x, int loc); [all …]
|
H A D | ts.h | 159 X509_EXTENSION *TS_REQ_get_ext(TS_REQ *a, int loc); 160 X509_EXTENSION *TS_REQ_delete_ext(TS_REQ *a, int loc); 161 int TS_REQ_add_ext(TS_REQ *a, X509_EXTENSION *ex, int loc); 221 X509_EXTENSION *TS_TST_INFO_get_ext(TS_TST_INFO *a, int loc); 222 X509_EXTENSION *TS_TST_INFO_delete_ext(TS_TST_INFO *a, int loc); 223 int TS_TST_INFO_add_ext(TS_TST_INFO *a, X509_EXTENSION *ex, int loc);
|
H A D | x509.h.in | 726 X509_ATTRIBUTE *X509_REQ_get_attr(const X509_REQ *req, int loc); 727 X509_ATTRIBUTE *X509_REQ_delete_attr(X509_REQ *req, int loc); 864 int loc, int set); 914 X509_EXTENSION *X509_get_ext(const X509 *x, int loc); 915 X509_EXTENSION *X509_delete_ext(X509 *x, int loc); 916 int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc); 926 X509_EXTENSION *X509_CRL_get_ext(const X509_CRL *x, int loc); 927 X509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc); 928 int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc); 1009 X509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *key, int loc); [all …]
|
/openssl/crypto/evp/ |
H A D | evp_pkey.c | 201 X509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *key, int loc) in EVP_PKEY_get_attr() argument 203 return X509at_get_attr(key->attributes, loc); in EVP_PKEY_get_attr() 206 X509_ATTRIBUTE *EVP_PKEY_delete_attr(EVP_PKEY *key, int loc) in EVP_PKEY_delete_attr() argument 208 return X509at_delete_attr(key->attributes, loc); in EVP_PKEY_delete_attr()
|