Lines Matching refs:clen
1281 size_t clen; in ssl_print_certificate() local
1288 clen = (p[0] << 16) | (p[1] << 8) | p[2]; in ssl_print_certificate()
1289 if (msglen < clen + 3) in ssl_print_certificate()
1293 BIO_printf(bio, "ASN.1Cert, length=%d", (int)clen); in ssl_print_certificate()
1295 if (x != NULL && d2i_X509(&x, &q, clen) == NULL) { in ssl_print_certificate()
1309 if (q != p + 3 + clen) { in ssl_print_certificate()
1312 *pmsg += clen + 3; in ssl_print_certificate()
1313 *pmsglen -= clen + 3; in ssl_print_certificate()
1322 size_t clen; in ssl_print_raw_public_key() local
1328 clen = (msg[0] << 16) | (msg[1] << 8) | msg[2]; in ssl_print_raw_public_key()
1329 if (msglen < clen + 3) in ssl_print_raw_public_key()
1335 BIO_printf(bio, "raw_public_key, length=%d\n", (int)clen); in ssl_print_raw_public_key()
1337 pkey = d2i_PUBKEY_ex(NULL, &msg, clen, ssl->ctx->libctx, ssl->ctx->propq); in ssl_print_raw_public_key()
1342 *pmsg += clen + 3; in ssl_print_raw_public_key()
1343 *pmsglen -= clen + 3; in ssl_print_raw_public_key()
1351 size_t clen; in ssl_print_certificates() local
1359 clen = (msg[0] << 16) | (msg[1] << 8) | msg[2]; in ssl_print_certificates()
1360 if (msglen != clen + 3) in ssl_print_certificates()
1365 if (!ssl_print_raw_public_key(bio, &sc->ssl, server, indent, &msg, &clen)) in ssl_print_certificates()
1369 SSL3_MT_CERTIFICATE, &msg, &clen)) in ssl_print_certificates()
1374 BIO_printf(bio, "certificate_list, length=%d\n", (int)clen); in ssl_print_certificates()
1375 while (clen > 0) { in ssl_print_certificates()
1376 if (!ssl_print_certificate(bio, sc, indent + 2, &msg, &clen)) in ssl_print_certificates()
1380 SSL3_MT_CERTIFICATE, &msg, &clen)) in ssl_print_certificates()
1393 size_t clen; in ssl_print_compressed_certificates() local
1407 clen = (msg[5] << 16) | (msg[6] << 8) | msg[7]; in ssl_print_compressed_certificates()
1408 if (msglen != clen + 8) in ssl_print_compressed_certificates()
1417 if (clen > 0) in ssl_print_compressed_certificates()
1418 … BIO_printf(bio, "Compressed length=%d, Ratio=%f:1\n", (int)clen, (float)uclen / (float)clen); in ssl_print_compressed_certificates()
1420 BIO_printf(bio, "Compressed length=%d, Ratio=unknown\n", (int)clen); in ssl_print_compressed_certificates()
1422 BIO_dump_indent(bio, (const char *)msg, clen, indent); in ssl_print_compressed_certificates()
1447 || COMP_expand_block(comp, ucdata, uclen, (unsigned char*)msg, clen) != (int)uclen) in ssl_print_compressed_certificates()