/freebsd/crypto/openssl/crypto/x509/ |
H A D | x509_ext.c | 24 int X509_CRL_get_ext_by_NID(const X509_CRL *x, int nid, int lastpos) in X509_CRL_get_ext_by_NID() argument 26 return X509v3_get_ext_by_NID(x->crl.extensions, nid, lastpos); in X509_CRL_get_ext_by_NID() 30 int lastpos) in X509_CRL_get_ext_by_OBJ() argument 32 return X509v3_get_ext_by_OBJ(x->crl.extensions, obj, lastpos); in X509_CRL_get_ext_by_OBJ() 35 int X509_CRL_get_ext_by_critical(const X509_CRL *x, int crit, int lastpos) in X509_CRL_get_ext_by_critical() argument 37 return X509v3_get_ext_by_critical(x->crl.extensions, crit, lastpos); in X509_CRL_get_ext_by_critical() 71 int X509_get_ext_by_NID(const X509 *x, int nid, int lastpos) in X509_get_ext_by_NID() argument 73 return X509v3_get_ext_by_NID(x->cert_info.extensions, nid, lastpos); in X509_get_ext_by_NID() 76 int X509_get_ext_by_OBJ(const X509 *x, const ASN1_OBJECT *obj, int lastpos) in X509_get_ext_by_OBJ() argument 78 return X509v3_get_ext_by_OBJ(x->cert_info.extensions, obj, lastpos); in X509_get_ext_by_OBJ() [all …]
|
H A D | x509_v3.c | 31 int lastpos) in X509v3_get_ext_by_NID() argument 38 return X509v3_get_ext_by_OBJ(x, obj, lastpos); in X509v3_get_ext_by_NID() 42 const ASN1_OBJECT *obj, int lastpos) in X509v3_get_ext_by_OBJ() argument 49 lastpos++; in X509v3_get_ext_by_OBJ() 50 if (lastpos < 0) in X509v3_get_ext_by_OBJ() 51 lastpos = 0; in X509v3_get_ext_by_OBJ() 53 for (; lastpos < n; lastpos++) { in X509v3_get_ext_by_OBJ() 54 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_OBJ() 56 return lastpos; in X509v3_get_ext_by_OBJ() 62 int lastpos) in X509v3_get_ext_by_critical() argument [all …]
|
H A D | x509_att.c | 27 int lastpos) in X509at_get_attr_by_NID() argument 33 return X509at_get_attr_by_OBJ(x, obj, lastpos); in X509at_get_attr_by_NID() 37 const ASN1_OBJECT *obj, int lastpos) in X509at_get_attr_by_OBJ() argument 44 lastpos++; in X509at_get_attr_by_OBJ() 45 if (lastpos < 0) in X509at_get_attr_by_OBJ() 46 lastpos = 0; in X509at_get_attr_by_OBJ() 48 for (; lastpos < n; lastpos++) { in X509at_get_attr_by_OBJ() 49 ex = sk_X509_ATTRIBUTE_value(sk, lastpos); in X509at_get_attr_by_OBJ() 51 return lastpos; in X509at_get_attr_by_OBJ() 225 const ASN1_OBJECT *obj, int lastpos, int type) in X509at_get0_data_by_OBJ() argument [all …]
|
H A D | x509name.c | 60 int X509_NAME_get_index_by_NID(const X509_NAME *name, int nid, int lastpos) in X509_NAME_get_index_by_NID() argument 67 return X509_NAME_get_index_by_OBJ(name, obj, lastpos); in X509_NAME_get_index_by_NID() 72 int lastpos) in X509_NAME_get_index_by_OBJ() argument 80 if (lastpos < 0) in X509_NAME_get_index_by_OBJ() 81 lastpos = -1; in X509_NAME_get_index_by_OBJ() 84 for (lastpos++; lastpos < n; lastpos++) { in X509_NAME_get_index_by_OBJ() 85 ne = sk_X509_NAME_ENTRY_value(sk, lastpos); in X509_NAME_get_index_by_OBJ() 87 return lastpos; in X509_NAME_get_index_by_OBJ()
|
H A D | v3_lib.c | 165 int lastpos, i; in X509V3_get_d2i() local 176 lastpos = *idx + 1; in X509V3_get_d2i() 178 lastpos = 0; in X509V3_get_d2i() 179 if (lastpos < 0) in X509V3_get_d2i() 180 lastpos = 0; in X509V3_get_d2i() 181 for (i = lastpos; i < sk_X509_EXTENSION_num(x); i++) { in X509V3_get_d2i()
|
H A D | x509_req.c | 200 int X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos) in X509_REQ_get_attr_by_NID() argument 202 return X509at_get_attr_by_NID(req->req_info.attributes, nid, lastpos); in X509_REQ_get_attr_by_NID() 206 int lastpos) in X509_REQ_get_attr_by_OBJ() argument 208 return X509at_get_attr_by_OBJ(req->req_info.attributes, obj, lastpos); in X509_REQ_get_attr_by_OBJ()
|
/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_att.c | 75 int CMS_signed_get_attr_by_NID(const CMS_SignerInfo *si, int nid, int lastpos) in CMS_signed_get_attr_by_NID() argument 77 return X509at_get_attr_by_NID(si->signedAttrs, nid, lastpos); in CMS_signed_get_attr_by_NID() 81 int lastpos) in CMS_signed_get_attr_by_OBJ() argument 83 return X509at_get_attr_by_OBJ(si->signedAttrs, obj, lastpos); in CMS_signed_get_attr_by_OBJ() 132 int lastpos, int type) in CMS_signed_get0_data_by_OBJ() argument 134 return X509at_get0_data_by_OBJ(si->signedAttrs, oid, lastpos, type); in CMS_signed_get0_data_by_OBJ() 143 int lastpos) in CMS_unsigned_get_attr_by_NID() argument 145 return X509at_get_attr_by_NID(si->unsignedAttrs, nid, lastpos); in CMS_unsigned_get_attr_by_NID() 149 const ASN1_OBJECT *obj, int lastpos) in CMS_unsigned_get_attr_by_OBJ() argument 151 return X509at_get_attr_by_OBJ(si->unsignedAttrs, obj, lastpos); in CMS_unsigned_get_attr_by_OBJ() [all …]
|
/freebsd/crypto/openssl/crypto/ocsp/ |
H A D | ocsp_ext.c | 28 int OCSP_REQUEST_get_ext_by_NID(OCSP_REQUEST *x, int nid, int lastpos) in OCSP_REQUEST_get_ext_by_NID() argument 31 (x->tbsRequest.requestExtensions, nid, lastpos)); in OCSP_REQUEST_get_ext_by_NID() 35 int lastpos) in OCSP_REQUEST_get_ext_by_OBJ() argument 38 (x->tbsRequest.requestExtensions, obj, lastpos)); in OCSP_REQUEST_get_ext_by_OBJ() 41 int OCSP_REQUEST_get_ext_by_critical(OCSP_REQUEST *x, int crit, int lastpos) in OCSP_REQUEST_get_ext_by_critical() argument 44 (x->tbsRequest.requestExtensions, crit, lastpos)); in OCSP_REQUEST_get_ext_by_critical() 82 int OCSP_ONEREQ_get_ext_by_NID(OCSP_ONEREQ *x, int nid, int lastpos) in OCSP_ONEREQ_get_ext_by_NID() argument 84 return X509v3_get_ext_by_NID(x->singleRequestExtensions, nid, lastpos); in OCSP_ONEREQ_get_ext_by_NID() 88 int lastpos) in OCSP_ONEREQ_get_ext_by_OBJ() argument 90 return X509v3_get_ext_by_OBJ(x->singleRequestExtensions, obj, lastpos); in OCSP_ONEREQ_get_ext_by_OBJ() [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | X509v3_get_ext_by_NID.pod | 24 int nid, int lastpos); 26 const ASN1_OBJECT *obj, int lastpos); 28 int crit, int lastpos); 35 int X509_get_ext_by_NID(const X509 *x, int nid, int lastpos); 36 int X509_get_ext_by_OBJ(const X509 *x, const ASN1_OBJECT *obj, int lastpos); 37 int X509_get_ext_by_critical(const X509 *x, int crit, int lastpos); 43 int X509_CRL_get_ext_by_NID(const X509_CRL *x, int nid, int lastpos); 45 int lastpos); 46 int X509_CRL_get_ext_by_critical(const X509_CRL *x, int crit, int lastpos); 52 int X509_REVOKED_get_ext_by_NID(const X509_REVOKED *x, int nid, int lastpos); [all …]
|
H A D | X509_NAME_get_index_by_NID.pod | 13 int X509_NAME_get_index_by_NID(const X509_NAME *name, int nid, int lastpos); 15 const ASN1_OBJECT *obj, int lastpos); 33 the next index matching B<nid> or B<obj> after B<lastpos>. B<lastpos> 102 int lastpos = -1; 106 lastpos = X509_NAME_get_index_by_NID(nm, NID_commonName, lastpos); 107 if (lastpos == -1) 109 e = X509_NAME_get_entry(nm, lastpos);
|
H A D | CMS_signed_get_attr.pod | 25 int lastpos); 27 int lastpos); 42 int lastpos, int type); 46 int lastpos); 48 const ASN1_OBJECT *obj, int lastpos); 62 int lastpos, int type); 75 position after I<lastpos>. If the returned value is positive then it can be used 76 on the next call to CMS_signed_get_attr_by_OBJ() as the value of I<lastpos> in 77 order to iterate through the remaining attributes. I<lastpos> can be set to any 111 attributes list that matches the I<obj> starting at index I<lastpos> [all …]
|
H A D | EVP_PKEY_get_attr.pod | 18 int EVP_PKEY_get_attr_by_NID(const EVP_PKEY *key, int nid, int lastpos); 20 int lastpos); 39 in the I<key> attribute list. The search starts at the position after I<lastpos>. 41 EVP_PKEY_get_attr_by_OBJ() as the value of I<lastpos> in order to iterate through 42 the remaining attributes. I<lastpos> can be set to any negative value on the
|
H A D | X509_REQ_get_attr.pod | 17 int X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos); 19 int lastpos); 36 in the I<req> attribute list. The search starts at the position after I<lastpos>. 38 X509_REQ_get_attr_by_OBJ() as the value of I<lastpos> in order to iterate through 39 the remaining attributes. I<lastpos> can be set to any negative value on the
|
H A D | X509_ATTRIBUTE.pod | 26 int lastpos); 28 const ASN1_OBJECT *obj, int lastpos); 48 const ASN1_OBJECT *obj, int lastpos, int type); 102 in a list of attributes I<sk>. The search starts at the position after I<lastpos>. 104 X509at_get_attr_by_OBJ() as the value of I<lastpos> in order to iterate through 105 the remaining attributes. I<lastpos> can be set to any negative value on the 192 that matches the I<obj> starting at index I<lastpos> and returns the data 197 If I<lastpos> is less than -1 then an error will occur if there are multiple 199 If I<lastpos> is less than -2 then an error will occur if there is more than
|
/freebsd/crypto/openssl/crypto/ts/ |
H A D | ts_req_utils.c | 150 int TS_REQ_get_ext_by_NID(TS_REQ *a, int nid, int lastpos) in TS_REQ_get_ext_by_NID() argument 152 return X509v3_get_ext_by_NID(a->extensions, nid, lastpos); in TS_REQ_get_ext_by_NID() 155 int TS_REQ_get_ext_by_OBJ(TS_REQ *a, const ASN1_OBJECT *obj, int lastpos) in TS_REQ_get_ext_by_OBJ() argument 157 return X509v3_get_ext_by_OBJ(a->extensions, obj, lastpos); in TS_REQ_get_ext_by_OBJ() 160 int TS_REQ_get_ext_by_critical(TS_REQ *a, int crit, int lastpos) in TS_REQ_get_ext_by_critical() argument 162 return X509v3_get_ext_by_critical(a->extensions, crit, lastpos); in TS_REQ_get_ext_by_critical()
|
H A D | ts_rsp_utils.c | 311 int TS_TST_INFO_get_ext_by_NID(TS_TST_INFO *a, int nid, int lastpos) in TS_TST_INFO_get_ext_by_NID() argument 313 return X509v3_get_ext_by_NID(a->extensions, nid, lastpos); in TS_TST_INFO_get_ext_by_NID() 316 int TS_TST_INFO_get_ext_by_OBJ(TS_TST_INFO *a, const ASN1_OBJECT *obj, int lastpos) in TS_TST_INFO_get_ext_by_OBJ() argument 318 return X509v3_get_ext_by_OBJ(a->extensions, obj, lastpos); in TS_TST_INFO_get_ext_by_OBJ() 321 int TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos) in TS_TST_INFO_get_ext_by_critical() argument 323 return X509v3_get_ext_by_critical(a->extensions, crit, lastpos); in TS_TST_INFO_get_ext_by_critical()
|
/freebsd/contrib/kyua/utils/text/ |
H A D | operations.cpp | 193 std::string::size_type pos, lastpos = 0; in replace_all() local 194 while ((pos = input.find(search, lastpos)) != std::string::npos) { in replace_all() 195 output += input.substr(lastpos, pos - lastpos); in replace_all() 197 lastpos = pos + search.length(); in replace_all() 199 output += input.substr(lastpos); in replace_all()
|
/freebsd/sys/kern/ |
H A D | subr_compressor.c | 390 size_t rc, lastpos; in zstdio_flush() local 398 lastpos = s->zst_outbuffer.pos; in zstdio_flush() 406 if (lastpos == s->zst_outbuffer.pos) { in zstdio_flush() 408 __func__, lastpos); in zstdio_flush() 416 lastpos = s->zst_outbuffer.pos; in zstdio_flush() 439 size_t lastpos, rc; in zstdio_write() local 449 lastpos = 0; in zstdio_write() 460 if (lastpos == s->zst_inbuffer.pos) { in zstdio_write() 465 lastpos); in zstdio_write() 468 lastpos = s->zst_inbuffer.pos; in zstdio_write()
|
/freebsd/usr.bin/bsdiff/bsdiff/ |
H A D | bsdiff.c | 122 off_t lastscan,lastpos,lastoffset; in main() 205 lastscan=0;lastpos=0;lastoffset=0; in main() 228 for(i=0;(lastscan+i<scan)&&(lastpos+i<oldsize);) { in main() 229 if(old[lastpos+i]==new[lastscan+i]) s++; in main() 248 old[lastpos+lenf-overlap+i]) s++; in main() 259 db[dblen+i]=new[lastscan+i]-old[lastpos+i]; in main() 276 offtout((pos-lenb)-(lastpos+lenf),buf); in main() 282 lastpos=pos-lenb; in main() 121 off_t lastscan,lastpos,lastoffset; main() local
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | ocsp.h.in | 304 int OCSP_REQUEST_get_ext_by_NID(OCSP_REQUEST *x, int nid, int lastpos); 306 int lastpos); 307 int OCSP_REQUEST_get_ext_by_critical(OCSP_REQUEST *x, int crit, int lastpos); 317 int OCSP_ONEREQ_get_ext_by_NID(OCSP_ONEREQ *x, int nid, int lastpos); 318 int OCSP_ONEREQ_get_ext_by_OBJ(OCSP_ONEREQ *x, const ASN1_OBJECT *obj, int lastpos); 319 int OCSP_ONEREQ_get_ext_by_critical(OCSP_ONEREQ *x, int crit, int lastpos); 328 int OCSP_BASICRESP_get_ext_by_NID(OCSP_BASICRESP *x, int nid, int lastpos); 330 int lastpos); 332 int lastpos); 342 int OCSP_SINGLERESP_get_ext_by_NID(OCSP_SINGLERESP *x, int nid, int lastpos); [all …]
|
H A D | ocsp.h | 400 int OCSP_REQUEST_get_ext_by_NID(OCSP_REQUEST *x, int nid, int lastpos); 402 int lastpos); 403 int OCSP_REQUEST_get_ext_by_critical(OCSP_REQUEST *x, int crit, int lastpos); 413 int OCSP_ONEREQ_get_ext_by_NID(OCSP_ONEREQ *x, int nid, int lastpos); 414 int OCSP_ONEREQ_get_ext_by_OBJ(OCSP_ONEREQ *x, const ASN1_OBJECT *obj, int lastpos); 415 int OCSP_ONEREQ_get_ext_by_critical(OCSP_ONEREQ *x, int crit, int lastpos); 424 int OCSP_BASICRESP_get_ext_by_NID(OCSP_BASICRESP *x, int nid, int lastpos); 426 int lastpos); 428 int lastpos); 438 int OCSP_SINGLERESP_get_ext_by_NID(OCSP_SINGLERESP *x, int nid, int lastpos); [all …]
|
H A D | ts.h | 154 int TS_REQ_get_ext_by_NID(TS_REQ *a, int nid, int lastpos); 155 int TS_REQ_get_ext_by_OBJ(TS_REQ *a, const ASN1_OBJECT *obj, int lastpos); 156 int TS_REQ_get_ext_by_critical(TS_REQ *a, int crit, int lastpos); 215 int TS_TST_INFO_get_ext_by_NID(TS_TST_INFO *a, int nid, int lastpos); 217 int lastpos); 218 int TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos);
|
H A D | x509.h.in | 703 int X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos); 705 int lastpos); 834 * NOTE: you should be passing -1, not 0 as lastpos. The functions that use 835 * lastpos, search after that position on. 837 int X509_NAME_get_index_by_NID(const X509_NAME *name, int nid, int lastpos); 839 int lastpos); 877 int nid, int lastpos); 879 const ASN1_OBJECT *obj, int lastpos); 881 int crit, int lastpos); 888 int X509_get_ext_by_NID(const X509 *x, int nid, int lastpos); [all …]
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | evp_pkey.c | 169 int EVP_PKEY_get_attr_by_NID(const EVP_PKEY *key, int nid, int lastpos) in EVP_PKEY_get_attr_by_NID() argument 171 return X509at_get_attr_by_NID(key->attributes, nid, lastpos); in EVP_PKEY_get_attr_by_NID() 175 int lastpos) in EVP_PKEY_get_attr_by_OBJ() argument 177 return X509at_get_attr_by_OBJ(key->attributes, obj, lastpos); in EVP_PKEY_get_attr_by_OBJ()
|
/freebsd/lib/libc/regex/ |
H A D | engine.c | 88 const char **lastpos; /* [nplus+1] */ member 270 m->lastpos = NULL; in matcher() 299 if (m->lastpos != NULL) in matcher() 300 free((char *)m->lastpos); in matcher() 335 if (g->nplus > 0 && m->lastpos == NULL) in matcher() 336 m->lastpos = malloc((g->nplus+1) * in matcher() 338 if (g->nplus > 0 && m->lastpos == NULL) { in matcher() 351 assert(g->nplus == 0 || m->lastpos != NULL); in matcher() 399 if (m->lastpos != NULL) in matcher() 400 free((char *)m->lastpos); in matcher() [all …]
|