Home | History | Annotate | Download | only in ssl

Lines Matching defs:cbs

471  * explicitly tagged with |tag| from |cbs| and saves it in |*out|. On
476 static int SSL_SESSION_parse_string(CBS *cbs, char **out, unsigned tag) {
477 CBS value;
479 if (!CBS_get_optional_asn1_octet_string(cbs, &value, &present, tag)) {
500 * explicitly tagged with |tag| from |cbs| and stows it in |*out_ptr|
505 static int SSL_SESSION_parse_octet_string(CBS *cbs, uint8_t **out_ptr,
507 CBS value;
508 if (!CBS_get_optional_asn1_octet_string(cbs, &value, NULL, tag)) {
522 CBS *cbs, uint8_t *out, uint8_t *out_len, uint8_t max_out, unsigned tag) {
523 CBS value;
524 if (!CBS_get_optional_asn1_octet_string(cbs, &value, NULL, tag) ||
534 static int SSL_SESSION_parse_long(CBS *cbs, long *out, unsigned tag,
537 if (!CBS_get_optional_asn1_uint64(cbs, &value, tag,
547 static int SSL_SESSION_parse_u32(CBS *cbs, uint32_t *out, unsigned tag,
550 if (!CBS_get_optional_asn1_uint64(cbs, &value, tag,
560 static int SSL_SESSION_parse_u16(CBS *cbs, uint16_t *out, unsigned tag,
563 if (!CBS_get_optional_asn1_uint64(cbs, &value, tag,
573 SSL_SESSION *SSL_SESSION_parse(CBS *cbs, const SSL_X509_METHOD *x509_method,
580 CBS session;
582 if (!CBS_get_asn1(cbs, &session, CBS_ASN1_SEQUENCE) ||
591 CBS cipher;
605 CBS session_id, master_key;
618 CBS child;
631 CBS peer;
657 CBS peer_sha256;
713 CBS cert_chain;
745 CBS cert;
768 CBS age_add;
812 CBS cbs;
813 CBS_init(&cbs, in, in_len);
814 SSL_SESSION *ret = SSL_SESSION_parse(&cbs, ctx->x509_method, ctx->pool);
818 if (CBS_len(&cbs) != 0) {