/openbsd/lib/libcrypto/x509/ |
H A D | x509_ext.c | 74 X509_CRL_get_ext_by_NID(const X509_CRL *x, int nid, int lastpos) in X509_CRL_get_ext_by_NID() argument 76 return X509v3_get_ext_by_NID(x->crl->extensions, nid, lastpos); in X509_CRL_get_ext_by_NID() 83 return X509v3_get_ext_by_OBJ(x->crl->extensions, obj, lastpos); in X509_CRL_get_ext_by_OBJ() 88 X509_CRL_get_ext_by_critical(const X509_CRL *x, int crit, int lastpos) in X509_CRL_get_ext_by_critical() argument 138 X509_get_ext_by_NID(const X509 *x, int nid, int lastpos) in X509_get_ext_by_NID() argument 152 X509_get_ext_by_critical(const X509 *x, int crit, int lastpos) in X509_get_ext_by_critical() argument 155 lastpos); in X509_get_ext_by_critical() 205 return X509v3_get_ext_by_NID(x->extensions, nid, lastpos); in X509_REVOKED_get_ext_by_NID() 211 int lastpos) in X509_REVOKED_get_ext_by_OBJ() argument 213 return X509v3_get_ext_by_OBJ(x->extensions, obj, lastpos); in X509_REVOKED_get_ext_by_OBJ() [all …]
|
H A D | x509_v3.c | 88 return X509v3_get_ext_by_OBJ(exts, obj, lastpos); in X509v3_get_ext_by_NID() 94 const ASN1_OBJECT *obj, int lastpos) in X509v3_get_ext_by_OBJ() argument 96 if (++lastpos < 0) in X509v3_get_ext_by_OBJ() 97 lastpos = 0; in X509v3_get_ext_by_OBJ() 99 for (; lastpos < X509v3_get_ext_count(exts); lastpos++) { in X509v3_get_ext_by_OBJ() 103 return lastpos; in X509v3_get_ext_by_OBJ() 112 int lastpos) in X509v3_get_ext_by_critical() argument 116 if (++lastpos < 0) in X509v3_get_ext_by_critical() 117 lastpos = 0; in X509v3_get_ext_by_critical() 119 for (; lastpos < X509v3_get_ext_count(exts); lastpos++) { in X509v3_get_ext_by_critical() [all …]
|
H A D | x509_att.c | 79 return (X509at_get_attr_by_OBJ(x, obj, lastpos)); in X509at_get_attr_by_NID() 84 const ASN1_OBJECT *obj, int lastpos) in X509at_get_attr_by_OBJ() argument 91 lastpos++; in X509at_get_attr_by_OBJ() 92 if (lastpos < 0) in X509at_get_attr_by_OBJ() 93 lastpos = 0; in X509at_get_attr_by_OBJ() 95 for (; lastpos < n; lastpos++) { in X509at_get_attr_by_OBJ() 96 ex = sk_X509_ATTRIBUTE_value(sk, lastpos); in X509at_get_attr_by_OBJ() 98 return (lastpos); in X509at_get_attr_by_OBJ() 185 int lastpos, int type) in X509at_get0_data_by_OBJ() argument 190 i = X509at_get_attr_by_OBJ(x, obj, lastpos); in X509at_get0_data_by_OBJ() [all …]
|
H A D | x509name.c | 133 X509_NAME_get_index_by_NID(const X509_NAME *name, int nid, int lastpos) in X509_NAME_get_index_by_NID() argument 140 return (X509_NAME_get_index_by_OBJ(name, obj, lastpos)); in X509_NAME_get_index_by_NID() 147 int lastpos) in X509_NAME_get_index_by_OBJ() argument 155 if (lastpos < 0) in X509_NAME_get_index_by_OBJ() 156 lastpos = -1; in X509_NAME_get_index_by_OBJ() 159 for (lastpos++; lastpos < n; lastpos++) { in X509_NAME_get_index_by_OBJ() 160 ne = sk_X509_NAME_ENTRY_value(sk, lastpos); in X509_NAME_get_index_by_OBJ() 162 return (lastpos); in X509_NAME_get_index_by_OBJ()
|
H A D | x509_lib.c | 209 int lastpos = idx == NULL ? -1 : *idx; in X509V3_get_d2i() local 222 if ((lastpos = X509v3_get_ext_by_NID(x509_exts, nid, lastpos)) < 0) in X509V3_get_d2i() 224 if ((ext = X509v3_get_ext(x509_exts, lastpos)) == NULL) in X509V3_get_d2i() 233 if (idx == NULL && X509v3_get_ext_by_NID(x509_exts, nid, lastpos) > 0) { in X509V3_get_d2i() 248 *idx = lastpos; in X509V3_get_d2i()
|
H A D | x509_req.c | 244 X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos) in X509_REQ_get_attr_by_NID() argument 246 return X509at_get_attr_by_NID(req->req_info->attributes, nid, lastpos); in X509_REQ_get_attr_by_NID() 252 int lastpos) in X509_REQ_get_attr_by_OBJ() argument 254 return X509at_get_attr_by_OBJ(req->req_info->attributes, obj, lastpos); in X509_REQ_get_attr_by_OBJ()
|
H A D | x509.h | 728 int lastpos); 730 int lastpos); 811 int lastpos); 813 const ASN1_OBJECT *obj, int lastpos); 841 int nid, int lastpos); 845 int crit, int lastpos); 854 int lastpos); 865 int lastpos); 869 int lastpos); 880 int lastpos); [all …]
|
H A D | x509_local.h | 430 int lastpos); 432 const ASN1_OBJECT *obj, int lastpos); 442 const ASN1_OBJECT *obj, int lastpos, int type);
|
/openbsd/lib/libcrypto/cms/ |
H A D | cms_att.c | 72 CMS_signed_get_attr_by_NID(const CMS_SignerInfo *si, int nid, int lastpos) in CMS_signed_get_attr_by_NID() argument 74 return X509at_get_attr_by_NID(si->signedAttrs, nid, lastpos); in CMS_signed_get_attr_by_NID() 80 int lastpos) in CMS_signed_get_attr_by_OBJ() argument 82 return X509at_get_attr_by_OBJ(si->signedAttrs, obj, lastpos); in CMS_signed_get_attr_by_OBJ() 141 int lastpos, int type) in CMS_signed_get0_data_by_OBJ() argument 143 return X509at_get0_data_by_OBJ(si->signedAttrs, oid, lastpos, type); in CMS_signed_get0_data_by_OBJ() 155 CMS_unsigned_get_attr_by_NID(const CMS_SignerInfo *si, int nid, int lastpos) in CMS_unsigned_get_attr_by_NID() argument 157 return X509at_get_attr_by_NID(si->unsignedAttrs, nid, lastpos); in CMS_unsigned_get_attr_by_NID() 163 int lastpos) in CMS_unsigned_get_attr_by_OBJ() argument 165 return X509at_get_attr_by_OBJ(si->unsignedAttrs, obj, lastpos); in CMS_unsigned_get_attr_by_OBJ() [all …]
|
H A D | cms.h | 286 int CMS_signed_get_attr_by_NID(const CMS_SignerInfo *si, int nid, int lastpos); 288 int lastpos); 299 int lastpos, int type); 303 int lastpos); 305 const ASN1_OBJECT *obj, int lastpos); 316 int lastpos, int type);
|
/openbsd/lib/libcrypto/ocsp/ |
H A D | ocsp_ext.c | 91 lastpos); in OCSP_REQUEST_get_ext_by_NID() 97 int lastpos) in OCSP_REQUEST_get_ext_by_OBJ() argument 100 lastpos); in OCSP_REQUEST_get_ext_by_OBJ() 108 crit, lastpos); in OCSP_REQUEST_get_ext_by_critical() 160 OCSP_ONEREQ_get_ext_by_NID(OCSP_ONEREQ *x, int nid, int lastpos) in OCSP_ONEREQ_get_ext_by_NID() argument 177 lastpos); in OCSP_ONEREQ_get_ext_by_critical() 231 nid, lastpos); in OCSP_BASICRESP_get_ext_by_NID() 237 int lastpos) in OCSP_BASICRESP_get_ext_by_OBJ() argument 240 obj, lastpos); in OCSP_BASICRESP_get_ext_by_OBJ() 248 x->tbsResponseData->responseExtensions, crit, lastpos); in OCSP_BASICRESP_get_ext_by_critical() [all …]
|
H A D | ocsp.h | 279 int OCSP_REQUEST_get_ext_by_NID(OCSP_REQUEST *x, int nid, int lastpos); 281 int lastpos); 283 int lastpos); 292 int OCSP_ONEREQ_get_ext_by_NID(OCSP_ONEREQ *x, int nid, int lastpos); 294 int lastpos); 295 int OCSP_ONEREQ_get_ext_by_critical(OCSP_ONEREQ *x, int crit, int lastpos); 306 int lastpos); 308 int lastpos); 319 int lastpos); 321 const ASN1_OBJECT *obj, int lastpos); [all …]
|
/openbsd/lib/libcrypto/ts/ |
H A D | ts_req_utils.c | 235 TS_REQ_get_ext_by_NID(TS_REQ *a, int nid, int lastpos) in TS_REQ_get_ext_by_NID() argument 237 return X509v3_get_ext_by_NID(a->extensions, nid, lastpos); in TS_REQ_get_ext_by_NID() 242 TS_REQ_get_ext_by_OBJ(TS_REQ *a, const ASN1_OBJECT *obj, int lastpos) in TS_REQ_get_ext_by_OBJ() argument 244 return X509v3_get_ext_by_OBJ(a->extensions, obj, lastpos); in TS_REQ_get_ext_by_OBJ() 249 TS_REQ_get_ext_by_critical(TS_REQ *a, int crit, int lastpos) in TS_REQ_get_ext_by_critical() argument 251 return X509v3_get_ext_by_critical(a->extensions, crit, lastpos); in TS_REQ_get_ext_by_critical()
|
H A D | ts_rsp_utils.c | 457 TS_TST_INFO_get_ext_by_NID(TS_TST_INFO *a, int nid, int lastpos) in TS_TST_INFO_get_ext_by_NID() argument 459 return X509v3_get_ext_by_NID(a->extensions, nid, lastpos); in TS_TST_INFO_get_ext_by_NID() 464 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 466 return X509v3_get_ext_by_OBJ(a->extensions, obj, lastpos); in TS_TST_INFO_get_ext_by_OBJ() 471 TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos) in TS_TST_INFO_get_ext_by_critical() argument 473 return X509v3_get_ext_by_critical(a->extensions, crit, lastpos); in TS_TST_INFO_get_ext_by_critical()
|
H A D | ts.h | 245 int TS_REQ_get_ext_by_NID(TS_REQ *a, int nid, int lastpos); 246 int TS_REQ_get_ext_by_OBJ(TS_REQ *a, const ASN1_OBJECT *obj, int lastpos); 247 int TS_REQ_get_ext_by_critical(TS_REQ *a, int crit, int lastpos); 312 int TS_TST_INFO_get_ext_by_NID(TS_TST_INFO *a, int nid, int lastpos); 314 int lastpos); 315 int TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos);
|
/openbsd/lib/libtls/ |
H A D | tls_verify.c | 221 int lastpos = -1; in tls_get_common_name_internal() local 234 lastpos = X509_NAME_get_index_by_NID(subject_name, in tls_get_common_name_internal() 235 NID_commonName, lastpos); in tls_get_common_name_internal() 236 if (lastpos == -1) in tls_get_common_name_internal() 238 if (lastpos < 0) in tls_get_common_name_internal() 240 if (X509_NAME_get_index_by_NID(subject_name, NID_commonName, lastpos) in tls_get_common_name_internal() 258 lastpos)); in tls_get_common_name_internal()
|
/openbsd/gnu/usr.bin/perl/dist/IO/t/ |
H A D | io_tell.t | 34 my $lastpos = tell; 54 if ($lastpos == $tst->tell) { print "ok 12\n"; } else { print "not ok 12\n"; }
|
/openbsd/gnu/usr.bin/perl/cpan/Text-Balanced/lib/Text/ |
H A D | Balanced.pm | 938 my ($lastpos, $firstpos); 972 $lastpos = pos $$textref; 986 $unkpos = $lastpos 990 push @fields, substr($$textref, $unkpos, $lastpos-$unkpos).$pref; 998 $firstpos = $lastpos unless defined $firstpos; 999 $lastpos = pos $$textref; 1016 $lastpos = length $$textref; 1021 pos $$textref = $lastpos; 1025 eval { substr($$textref,$firstpos,$lastpos-$firstpos)="";
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_stacktrace_test.cpp | 215 size_t lastpos = sizeof(tinybuf) - 1; in TEST_F() local 216 EXPECT_EQ(strncmp(buf, tinybuf, lastpos), 0); in TEST_F() 217 EXPECT_EQ(tinybuf[lastpos], '\0'); in TEST_F() 220 EXPECT_NE(buf[lastpos], '\0'); in TEST_F()
|
/openbsd/lib/libc/regex/ |
H A D | engine.c | 79 const char **lastpos; /* [nplus+1] */ member 174 m->lastpos = NULL; in matcher() 190 free(m->lastpos); in matcher() 224 if (g->nplus > 0 && m->lastpos == NULL) in matcher() 225 m->lastpos = reallocarray(NULL, in matcher() 227 if (g->nplus > 0 && m->lastpos == NULL) { in matcher() 240 assert(g->nplus == 0 || m->lastpos != NULL); in matcher() 286 free(m->lastpos); in matcher() 600 assert(m->lastpos != NULL); in backref() 602 m->lastpos[lev+1] = sp; in backref() [all …]
|
/openbsd/gnu/usr.bin/perl/t/io/ |
H A D | tell.t | 29 $lastpos = tell; 49 is($lastpos, tell, "the position is the same as after reading whole file line by line");
|
/openbsd/gnu/llvm/llvm/lib/Support/ |
H A D | regengine.inc | 81 const char **lastpos; /* [nplus+1] */ 175 m->lastpos = NULL; 191 free((void*)m->lastpos); 225 if (g->nplus > 0 && m->lastpos == NULL) 228 if (g->nplus > 0 && m->lastpos == NULL) { 241 assert(g->nplus == 0 || m->lastpos != NULL); 288 if (m->lastpos != NULL) 289 free((char *)m->lastpos); 651 assert(m->lastpos != NULL); 653 m->lastpos[lev+1] = sp; [all …]
|
/openbsd/gnu/usr.bin/binutils/gas/config/ |
H A D | tc-mips.c | 8425 unsigned int lastpos = 0; in mips_ip() local 8612 lastpos = imm_expr.X_add_number; in mips_ip() 8636 + lastpos) < limlo in mips_ip() 8638 + lastpos) > limhi) in mips_ip() 8642 (unsigned long) lastpos); in mips_ip() 8643 imm_expr.X_add_number = limlo - lastpos; in mips_ip() 8645 ip->insn_opcode |= ((lastpos + imm_expr.X_add_number - 1) in mips_ip() 8672 + lastpos) < limlo in mips_ip() 8674 + lastpos) > limhi) in mips_ip() 8678 (unsigned long) lastpos); in mips_ip() [all …]
|
/openbsd/gnu/usr.bin/binutils-2.17/gas/config/ |
H A D | tc-mips.c | 8276 unsigned int lastpos = 0; in mips_ip() local 8687 lastpos = imm_expr.X_add_number; in mips_ip() 8710 + lastpos) < limlo in mips_ip() 8712 + lastpos) > limhi) in mips_ip() 8716 (unsigned long) lastpos); in mips_ip() 8717 imm_expr.X_add_number = limlo - lastpos; in mips_ip() 8720 lastpos + imm_expr.X_add_number - 1); in mips_ip() 8746 + lastpos) < limlo in mips_ip() 8748 + lastpos) > limhi) in mips_ip() 8752 (unsigned long) lastpos); in mips_ip() [all …]
|
/openbsd/sys/netinet/ |
H A D | tcp_input.c | 2347 int i, j = 0, count = 0, lastpos = -1; in tcp_update_sack_list() local 2398 lastpos = i; /* last posn with a zero entry */ in tcp_update_sack_list() 2406 lastpos = i; /* last posn with a zero entry */ in tcp_update_sack_list() 2408 if (lastpos != -1) { /* at least one merge */ in tcp_update_sack_list()
|