Lines Matching refs:p

20 static int _asn1_check_infinite_end(const unsigned char **p, long len)  in _asn1_check_infinite_end()  argument
28 if ((len >= 2) && ((*p)[0] == 0) && ((*p)[1] == 0)) { in _asn1_check_infinite_end()
29 (*p) += 2; in _asn1_check_infinite_end()
36 int ASN1_check_infinite_end(unsigned char **p, long len) in ASN1_check_infinite_end() argument
38 return _asn1_check_infinite_end((const unsigned char **)p, len); in ASN1_check_infinite_end()
41 int ASN1_const_check_infinite_end(const unsigned char **p, long len) in ASN1_const_check_infinite_end() argument
43 return _asn1_check_infinite_end(p, len); in ASN1_const_check_infinite_end()
51 const unsigned char *p = *pp; in ASN1_get_object() local
59 ret = (*p & V_ASN1_CONSTRUCTED); in ASN1_get_object()
60 xclass = (*p & V_ASN1_PRIVATE); in ASN1_get_object()
61 i = *p & V_ASN1_PRIMITIVE_TAG; in ASN1_get_object()
63 p++; in ASN1_get_object()
67 while (*p & 0x80) { in ASN1_get_object()
69 len |= *(p++) & 0x7f; in ASN1_get_object()
76 len |= *(p++) & 0x7f; in ASN1_get_object()
82 p++; in ASN1_get_object()
88 if (!asn1_get_length(&p, &inf, plength, max)) in ASN1_get_object()
94 if (*plength > (omax - (p - *pp))) { in ASN1_get_object()
102 *pp = p; in ASN1_get_object()
119 const unsigned char *p = *pp; in asn1_get_length() local
125 if (*p == 0x80) { in asn1_get_length()
127 p++; in asn1_get_length()
130 i = *p & 0x7f; in asn1_get_length()
131 if (*p++ & 0x80) { in asn1_get_length()
135 while (i > 0 && *p == 0) { in asn1_get_length()
136 p++; in asn1_get_length()
143 ret |= *p++; in asn1_get_length()
152 *pp = p; in asn1_get_length()
163 unsigned char *p = *pp; in ASN1_put_object() local
169 *(p++) = i | (tag & V_ASN1_PRIMITIVE_TAG); in ASN1_put_object()
171 *(p++) = i | V_ASN1_PRIMITIVE_TAG; in ASN1_put_object()
176 p[i] = tag & 0x7f; in ASN1_put_object()
178 p[i] |= 0x80; in ASN1_put_object()
181 p += ttag; in ASN1_put_object()
184 *(p++) = 0x80; in ASN1_put_object()
186 asn1_put_length(&p, length); in ASN1_put_object()
187 *pp = p; in ASN1_put_object()
192 unsigned char *p = *pp; in ASN1_put_eoc() local
194 *p++ = 0; in ASN1_put_eoc()
195 *p++ = 0; in ASN1_put_eoc()
196 *pp = p; in ASN1_put_eoc()
202 unsigned char *p = *pp; in asn1_put_length() local
206 *(p++) = (unsigned char)length; in asn1_put_length()
211 *(p++) = i | 0x80; in asn1_put_length()
214 p[i] = length & 0xff; in asn1_put_length()
217 p += len; in asn1_put_length()
219 *pp = p; in asn1_put_length()
442 char *p; in ossl_sk_ASN1_UTF8STRING2text() local
459 p = result; in ossl_sk_ASN1_UTF8STRING2text()
464 strncpy(p, sep, sep_len + 1); /* using + 1 to silence gcc warning */ in ossl_sk_ASN1_UTF8STRING2text()
465 p += sep_len; in ossl_sk_ASN1_UTF8STRING2text()
467 strncpy(p, (const char *)ASN1_STRING_get0_data(current), length); in ossl_sk_ASN1_UTF8STRING2text()
468 p += length; in ossl_sk_ASN1_UTF8STRING2text()
470 *p = '\0'; in ossl_sk_ASN1_UTF8STRING2text()