Home
last modified time | relevance | path

Searched refs:lastpos (Results 1 – 25 of 27) sorted by relevance

12

/openbsd/lib/libcrypto/x509/
H A Dx509_ext.c74 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 Dx509_v3.c88 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 Dx509_att.c87 return (X509at_get_attr_by_OBJ(x, obj, lastpos)); in X509at_get_attr_by_NID()
93 const ASN1_OBJECT *obj, int lastpos) in X509at_get_attr_by_OBJ() argument
100 lastpos++; in X509at_get_attr_by_OBJ()
101 if (lastpos < 0) in X509at_get_attr_by_OBJ()
102 lastpos = 0; in X509at_get_attr_by_OBJ()
104 for (; lastpos < n; lastpos++) { in X509at_get_attr_by_OBJ()
105 ex = sk_X509_ATTRIBUTE_value(sk, lastpos); in X509at_get_attr_by_OBJ()
107 return (lastpos); in X509at_get_attr_by_OBJ()
215 int lastpos, int type) in X509at_get0_data_by_OBJ() argument
220 i = X509at_get_attr_by_OBJ(x, obj, lastpos); in X509at_get0_data_by_OBJ()
[all …]
H A Dx509name.c133 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 Dx509_lib.c209 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 Dx509.h743 int lastpos);
745 int lastpos);
826 int lastpos);
869 int lastpos);
880 int lastpos);
884 int lastpos);
895 int lastpos);
899 int crit, int lastpos);
924 int lastpos);
958 int lastpos);
[all …]
H A Dx509_req.c244 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()
/openbsd/lib/libcrypto/cms/
H A Dcms_att.c72 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 Dcms.h286 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 Docsp_ext.c91 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 Docsp.h279 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/libtls/
H A Dtls_verify.c222 int lastpos = -1; in tls_check_common_name() local
231 lastpos = X509_NAME_get_index_by_NID(subject_name, in tls_check_common_name()
232 NID_commonName, lastpos); in tls_check_common_name()
233 if (lastpos == -1) in tls_check_common_name()
235 if (lastpos < 0) in tls_check_common_name()
237 if (X509_NAME_get_index_by_NID(subject_name, NID_commonName, lastpos) in tls_check_common_name()
255 lastpos)); in tls_check_common_name()
/openbsd/lib/libcrypto/ts/
H A Dts_req_utils.c235 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 Dts_rsp_utils.c457 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 Dts.h245 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/gnu/usr.bin/perl/dist/IO/t/
H A Dio_tell.t34 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 DBalanced.pm938 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 Dsanitizer_stacktrace_test.cpp215 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 Dengine.c79 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 Dtell.t29 $lastpos = tell;
49 is($lastpos, tell, "the position is the same as after reading whole file line by line");
/openbsd/lib/libcrypto/evp/
H A Devp_pkey.c197 EVP_PKEY_get_attr_by_NID(const EVP_PKEY *key, int nid, int lastpos) in EVP_PKEY_get_attr_by_NID() argument
206 int lastpos) in EVP_PKEY_get_attr_by_OBJ() argument
/openbsd/gnu/llvm/llvm/lib/Support/
H A Dregengine.inc81 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 Dtc-mips.c8425 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 Dtc-mips.c8276 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 Dtcp_input.c2316 int i, j = 0, count = 0, lastpos = -1; in tcp_update_sack_list() local
2367 lastpos = i; /* last posn with a zero entry */ in tcp_update_sack_list()
2375 lastpos = i; /* last posn with a zero entry */ in tcp_update_sack_list()
2377 if (lastpos != -1) { /* at least one merge */ in tcp_update_sack_list()

12