/openssl/ssl/ |
H A D | bio_ssl.c | 62 BIO_SSL *bs = OPENSSL_zalloc(sizeof(*bs)); in ssl_new() local 64 if (bs == NULL) in ssl_new() 76 BIO_SSL *bs; in ssl_free() local 82 if (bs->ssl != NULL && !SSL_in_init(bs->ssl)) in ssl_free() 168 BIO_SSL *bs; in ssl_write() local 173 ssl = bs->ssl; in ssl_write() 183 if (bs->byte_count > bs->renegotiate_count) { in ssl_write() 194 if (tm > bs->last_time + bs->renegotiate_timeout) { in ssl_write() 236 ssl = bs->ssl; in ssl_ctrl() 411 BIO_SSL *bs; in ssl_callback_ctrl() local [all …]
|
/openssl/crypto/ocsp/ |
H A D | ocsp_cl.c | 143 return bs->signature; in OCSP_resp_get0_signature() 148 return &bs->signatureAlgorithm; in OCSP_resp_get0_tbs_sigalg() 153 return &bs->tbsResponseData; in OCSP_resp_get0_respdata() 158 int OCSP_resp_count(OCSP_BASICRESP *bs) in OCSP_resp_count() argument 160 if (bs == NULL) in OCSP_resp_count() 168 if (bs == NULL) in OCSP_resp_get0() 175 return bs->tbsResponseData.producedAt; in OCSP_resp_get0_produced_at() 180 return bs->certs; in STACK_OF() 228 if (bs == NULL) in OCSP_resp_find() 289 int i = OCSP_resp_find(bs, id, -1); in OCSP_resp_find_status() [all …]
|
H A D | ocsp_vfy.c | 16 static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs, 76 static int ocsp_verify(OCSP_REQUEST *req, OCSP_BASICRESP *bs, in ocsp_verify() argument 98 int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs, in OCSP_basic_verify() argument 104 int ret = ocsp_find_signer(&signer, bs, certs, flags); in OCSP_basic_verify() 113 if ((ret = ocsp_verify(NULL, bs, signer, flags)) <= 0) in OCSP_basic_verify() 118 if ((untrusted = sk_X509_dup(bs->certs)) == NULL) in OCSP_basic_verify() 134 ret = ocsp_check_issuer(bs, chain); in OCSP_basic_verify() 162 int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer, in OCSP_resp_get0_signer() argument 165 return ocsp_find_signer(signer, bs, extra_certs, 0) > 0; in OCSP_resp_get0_signer() 172 OCSP_RESPID *rid = &bs->tbsResponseData.responderId; in ocsp_find_signer() [all …]
|
H A D | ocsp_srv.c | 63 OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs) in OCSP_response_create() argument 71 if (!bs) in OCSP_response_create() 77 (bs, ASN1_ITEM_rptr(OCSP_BASICRESP), &rsp->responseBytes->response)) in OCSP_response_create()
|
/openssl/test/ |
H A D | ocspapitest.c | 91 if (!TEST_ptr(bs) in make_dummy_resp() 99 bs_out = bs; in make_dummy_resp() 100 bs = NULL; in make_dummy_resp() 107 OCSP_BASICRESP_free(bs); in make_dummy_resp() 114 OCSP_BASICRESP *bs = NULL; in test_resp_signer() local 124 bs = make_dummy_resp(); in test_resp_signer() 126 if (!TEST_ptr(bs) in test_resp_signer() 136 OCSP_BASICRESP_free(bs); in test_resp_signer() 139 bs = make_dummy_resp(); in test_resp_signer() 141 if (!TEST_ptr(bs) in test_resp_signer() [all …]
|
H A D | destest.c | 725 int clen, clen_upd, clen_fin, plen, plen_upd, plen_fin, expect, bs, i; in test_des_key_wrap() local 733 || !TEST_int_eq(bs = EVP_CIPHER_get_block_size(cipher), 8) in test_des_key_wrap() 734 || !TEST_size_t_eq(bs * 3u, sizeof(key)) in test_des_key_wrap() 735 || !TEST_true(in_bytes % bs == 0) in test_des_key_wrap() 755 expect = (in_bytes + (bs - 1)) / bs * bs + 2 * bs; in test_des_key_wrap()
|
/openssl/doc/man3/ |
H A D | OCSP_resp_find_status.pod | 24 int OCSP_resp_count(OCSP_BASICRESP *bs); 25 OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx); 26 int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last); 40 int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer, 43 int OCSP_resp_get0_id(const OCSP_BASICRESP *bs, 46 int OCSP_resp_get1_id(const OCSP_BASICRESP *bs, 54 int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs, 84 single response I<bs>. 86 OCSP_resp_get0_signature() returns the signature from I<bs>. 120 in I<bs> unless I<flags> contains B<OCSP_NOINTERN>. [all …]
|
/openssl/crypto/bn/asm/ |
H A D | co-586.pl | 132 $bs=0; 151 $bi=$bs; 156 for ($j=$bs; $j<$end; $j++) 158 &xor($c2,$c2) if ($j == $bs); 174 $nb=$bs+($i >= ($num-1)); 191 $bs++ if ($i >= ($num-1)); 233 $bs=0; 240 $bi=$bs; 244 for ($j=$bs; $j<$end; $j++) 262 $nb=$bs+($i >= ($num-1)); [all …]
|
/openssl/crypto/asn1/ |
H A D | f_int.c | 52 int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size) in a2i_ASN1_INTEGER() argument 59 bs->type = V_ASN1_INTEGER; in a2i_ASN1_INTEGER() 131 bs->length = num; in a2i_ASN1_INTEGER() 132 bs->data = s; in a2i_ASN1_INTEGER() 145 int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size) in a2i_ASN1_ENUMERATED() argument 147 int rv = a2i_ASN1_INTEGER(bp, bs, buf, size); in a2i_ASN1_ENUMERATED() 149 bs->type = V_ASN1_INTEGER | (bs->type & V_ASN1_NEG); in a2i_ASN1_ENUMERATED()
|
H A D | t_bitst.c | 15 int ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs, in ASN1_BIT_STRING_name_print() argument 22 if (ASN1_BIT_STRING_get_bit(bs, bnam->bitnum)) { in ASN1_BIT_STRING_name_print() 33 int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value, in ASN1_BIT_STRING_set_asc() argument 40 if (bs) { in ASN1_BIT_STRING_set_asc() 41 if (!ASN1_BIT_STRING_set_bit(bs, bitnum, value)) in ASN1_BIT_STRING_set_asc()
|
H A D | f_string.c | 46 int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size) in a2i_ASN1_STRING() argument 124 bs->length = num; in a2i_ASN1_STRING() 125 bs->data = s; in a2i_ASN1_STRING()
|
/openssl/crypto/x509/ |
H A D | v3_bitst.c | 63 ASN1_BIT_STRING *bs; in v2i_ASN1_BIT_STRING() local 66 if ((bs = ASN1_BIT_STRING_new()) == NULL) { in v2i_ASN1_BIT_STRING() 75 if (!ASN1_BIT_STRING_set_bit(bs, bnam->bitnum, 1)) { in v2i_ASN1_BIT_STRING() 77 ASN1_BIT_STRING_free(bs); in v2i_ASN1_BIT_STRING() 86 ASN1_BIT_STRING_free(bs); in v2i_ASN1_BIT_STRING() 90 return bs; in v2i_ASN1_BIT_STRING()
|
H A D | v3_addr.c | 107 if (bs->length < 0 || bs->length > length) in addr_expand() 109 if (bs->length > 0) { in addr_expand() 110 memcpy(addr, bs->data, bs->length); in addr_expand() 111 if ((bs->flags & 7) != 0) { in addr_expand() 117 addr[bs->length - 1] |= mask; in addr_expand() 120 memset(addr + bs->length, fill, length - bs->length); in addr_expand() 127 # define addr_prefixlen(bs) ((int)((bs)->length * 8 - ((bs)->flags & 7))) argument 139 if (bs->length < 0) in i2r_address() 143 if (!addr_expand(addr, bs, 4, fill)) in i2r_address() 148 if (!addr_expand(addr, bs, 16, fill)) in i2r_address() [all …]
|
H A D | t_req.c | 117 ASN1_BIT_STRING *bs = NULL; in X509_REQ_print_ex() local 137 bs = at->value.asn1_string; in X509_REQ_print_ex() 150 if (BIO_write(bp, (char *)bs->data, bs->length) in X509_REQ_print_ex() 151 != bs->length) in X509_REQ_print_ex()
|
H A D | t_x509.c | 87 const ASN1_INTEGER *bs = X509_get0_serialNumber(x); in X509_print_ex() local 91 if (ossl_serial_number_print(bp, bs, 12) != 0) in X509_print_ex() 511 int ossl_serial_number_print(BIO *out, const ASN1_INTEGER *bs, int indent) in ossl_serial_number_print() argument 518 if (bs->length <= (int)sizeof(long)) { in ossl_serial_number_print() 520 l = ASN1_INTEGER_get(bs); in ossl_serial_number_print() 526 if (bs->type == V_ASN1_NEG_INTEGER) { in ossl_serial_number_print() 536 neg = (bs->type == V_ASN1_NEG_INTEGER) ? " (Negative)" : ""; in ossl_serial_number_print() 540 for (i = 0; i < bs->length - 1; i++) { in ossl_serial_number_print() 541 if (BIO_printf(out, "%02x%c", bs->data[i], ':') <= 0) in ossl_serial_number_print() 544 if (BIO_printf(out, "%02x", bs->data[i]) <= 0) in ossl_serial_number_print()
|
H A D | t_acert.c | 45 ASN1_BIT_STRING *bs; in print_attribute() local 56 bs = at->value.asn1_string; in print_attribute() 57 if (BIO_write(bp, (char *)bs->data, bs->length) != bs->length) in print_attribute()
|
H A D | v3_purp.c | 402 BASIC_CONSTRAINTS *bs; in ossl_x509v3_cache_extensions() local 435 if ((bs = X509_get_ext_d2i(x, NID_basic_constraints, &i, NULL)) != NULL) { in ossl_x509v3_cache_extensions() 436 if (bs->ca) in ossl_x509v3_cache_extensions() 438 if (bs->pathlen != NULL) { in ossl_x509v3_cache_extensions() 443 if (bs->pathlen->type == V_ASN1_NEG_INTEGER) { in ossl_x509v3_cache_extensions() 447 x->ex_pathlen = ASN1_INTEGER_get(bs->pathlen); in ossl_x509v3_cache_extensions() 450 BASIC_CONSTRAINTS_free(bs); in ossl_x509v3_cache_extensions()
|
/openssl/ssl/record/methods/ |
H A D | tls1_meth.c | 176 size_t bs, ctr, padnum, loop; in tls1_cipher() local 232 if (bs == 0) { in tls1_cipher() 292 padnum = bs - (reclen[ctr] % bs); in tls1_cipher() 384 recs[0].data += bs; in tls1_cipher() 385 recs[0].input += bs; in tls1_cipher() 386 recs[0].orig_len -= bs; in tls1_cipher() 436 recs[ctr].data += bs; in tls1_cipher() 437 recs[ctr].input += bs; in tls1_cipher() 438 recs[ctr].length -= bs; in tls1_cipher() 439 recs[ctr].orig_len -= bs; in tls1_cipher() [all …]
|
H A D | ssl3_meth.c | 102 size_t bs; in ssl3_cipher() local 120 bs = EVP_CIPHER_CTX_get_block_size(ds); in ssl3_cipher() 122 if (bs == 0) in ssl3_cipher() 127 if ((bs != 1) && sending && !provided) { in ssl3_cipher() 132 i = bs - (l % bs); in ssl3_cipher() 146 if (l == 0 || l % bs != 0) { in ssl3_cipher() 192 bs, in ssl3_cipher()
|
/openssl/fuzz/ |
H A D | x509.c | 47 OCSP_BASICRESP *bs = NULL; in FuzzerTestOneInput() local 111 bs = OCSP_response_get1_basic(resp); in FuzzerTestOneInput() 113 if (bs != NULL) { in FuzzerTestOneInput() 124 OCSP_basic_verify(bs, certs, store, OCSP_PARTIAL_CHAIN); in FuzzerTestOneInput() 129 OCSP_resp_find_status(bs, id, &status, &reason, &revtime, &thisupd, in FuzzerTestOneInput() 141 OCSP_BASICRESP_free(bs); in FuzzerTestOneInput()
|
/openssl/apps/ |
H A D | ocsp.c | 218 OCSP_BASICRESP *bs = NULL; in ocsp_main() local 812 bs = OCSP_response_get1_basic(resp); in ocsp_main() 813 if (bs == NULL) { in ocsp_main() 870 OCSP_BASICRESP_free(bs); in ocsp_main() 1038 OCSP_BASICRESP *bs = NULL; in make_ocsp_response() local 1051 bs = OCSP_BASICRESP_new(); in make_ocsp_response() 1096 OCSP_basic_add1_status(bs, cid, in make_ocsp_response() 1102 OCSP_basic_add1_status(bs, cid, in make_ocsp_response() 1106 OCSP_basic_add1_status(bs, cid, in make_ocsp_response() 1139 OCSP_copy_nonce(bs, req); in make_ocsp_response() [all …]
|
/openssl/include/openssl/ |
H A D | ocsp.h.in | 212 int OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs); 228 const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs); 230 int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer, 233 int OCSP_resp_count(OCSP_BASICRESP *bs); 234 OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx); 236 const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs); 237 int OCSP_resp_get0_id(const OCSP_BASICRESP *bs, 240 int OCSP_resp_get1_id(const OCSP_BASICRESP *bs, 244 int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last); 273 OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs); [all …]
|
/openssl/crypto/aes/asm/ |
H A D | aes-riscv32-zkn.pl | 129 my $bs = shift; 131 return ".word ".($template | ($bs << 30) | ($rs2 << 20) | ($rs1 << 15) | ($rd << 7)); 141 my $bs = shift; 143 return ".word ".($template | ($bs << 30) | ($rs2 << 20) | ($rs1 << 15) | ($rd << 7)); 153 my $bs = shift; 155 return ".word ".($template | ($bs << 30) | ($rs2 << 20) | ($rs1 << 15) | ($rd << 7)); 165 my $bs = shift; 167 return ".word ".($template | ($bs << 30) | ($rs2 << 20) | ($rs1 << 15) | ($rd << 7));
|
/openssl/doc/internal/man3/ |
H A D | ossl_serial_number_print.pod | 12 int ossl_serial_number_print(BIO *out, const ASN1_INTEGER *bs, int indent); 16 This function writes a certificate serial number I<bs> to BIO I<out> in decimal if the serial
|
/openssl/crypto/ec/curve448/arch_32/ |
H A D | f_impl32.c | 24 void ossl_gf_mul(gf_s * RESTRICT cs, const gf as, const gf bs) 26 const uint32_t *a = as->limb, *b = bs->limb;
|