| /src/crypto/external/apache2/openssl/dist/crypto/ts/ |
| ts_rsp_print.c | 23 static int ts_status_map_print(BIO *bio, const struct status_map_st *a, 25 static int ts_ACCURACY_print_bio(BIO *bio, const TS_ACCURACY *accuracy); 27 int TS_RESP_print_bio(BIO *bio, TS_RESP *a) 29 BIO_printf(bio, "Status info:\n"); 30 TS_STATUS_INFO_print_bio(bio, a->status_info); 32 BIO_printf(bio, "\nTST info:\n"); 34 TS_TST_INFO_print_bio(bio, a->tst_info) [all...] |
| ts_req_print.c | 18 int TS_REQ_print_bio(BIO *bio, TS_REQ *a) 27 BIO_printf(bio, "Version: %d\n", v); 29 TS_MSG_IMPRINT_print_bio(bio, a->msg_imprint); 31 BIO_printf(bio, "Policy OID: "); 34 BIO_printf(bio, "unspecified\n"); 36 TS_OBJ_print_bio(bio, policy_id); 38 BIO_printf(bio, "Nonce: "); 40 BIO_printf(bio, "unspecified"); 42 TS_ASN1_INTEGER_print_bio(bio, a->nonce) [all...] |
| ts_lib.c | 19 int TS_ASN1_INTEGER_print_bio(BIO *bio, const ASN1_INTEGER *num) 29 result = BIO_write(bio, "0x", 2) > 0; 30 result = result && BIO_write(bio, hex, strlen(hex)) > 0; 38 int TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj) 43 BIO_printf(bio, "%s\n", obj_txt); 48 int TS_ext_print_bio(BIO *bio, const STACK_OF(X509_EXTENSION) *extensions) 54 BIO_printf(bio, "Extensions:\n") [all...] |
| /src/crypto/external/bsd/openssl/dist/crypto/ts/ |
| ts_rsp_print.c | 23 static int ts_status_map_print(BIO *bio, const struct status_map_st *a, 25 static int ts_ACCURACY_print_bio(BIO *bio, const TS_ACCURACY *accuracy); 28 int TS_RESP_print_bio(BIO *bio, TS_RESP *a) 30 BIO_printf(bio, "Status info:\n"); 31 TS_STATUS_INFO_print_bio(bio, a->status_info); 33 BIO_printf(bio, "\nTST info:\n"); 35 TS_TST_INFO_print_bio(bio, a->tst_info) [all...] |
| ts_req_print.c | 18 int TS_REQ_print_bio(BIO *bio, TS_REQ *a) 27 BIO_printf(bio, "Version: %d\n", v); 29 TS_MSG_IMPRINT_print_bio(bio, a->msg_imprint); 31 BIO_printf(bio, "Policy OID: "); 34 BIO_printf(bio, "unspecified\n"); 36 TS_OBJ_print_bio(bio, policy_id); 38 BIO_printf(bio, "Nonce: "); 40 BIO_printf(bio, "unspecified"); 42 TS_ASN1_INTEGER_print_bio(bio, a->nonce) [all...] |
| ts_lib.c | 19 int TS_ASN1_INTEGER_print_bio(BIO *bio, const ASN1_INTEGER *num) 29 result = BIO_write(bio, "0x", 2) > 0; 30 result = result && BIO_write(bio, hex, strlen(hex)) > 0; 38 int TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj) 43 BIO_printf(bio, "%s\n", obj_txt); 48 int TS_ext_print_bio(BIO *bio, const STACK_OF(X509_EXTENSION) *extensions) 54 BIO_printf(bio, "Extensions:\n") [all...] |
| /src/crypto/external/bsd/openssl.old/dist/crypto/ts/ |
| ts_rsp_print.c | 23 static int ts_status_map_print(BIO *bio, const struct status_map_st *a, 25 static int ts_ACCURACY_print_bio(BIO *bio, const TS_ACCURACY *accuracy); 28 int TS_RESP_print_bio(BIO *bio, TS_RESP *a) 30 BIO_printf(bio, "Status info:\n"); 31 TS_STATUS_INFO_print_bio(bio, a->status_info); 33 BIO_printf(bio, "\nTST info:\n"); 35 TS_TST_INFO_print_bio(bio, a->tst_info) [all...] |
| ts_req_print.c | 18 int TS_REQ_print_bio(BIO *bio, TS_REQ *a) 27 BIO_printf(bio, "Version: %d\n", v); 29 TS_MSG_IMPRINT_print_bio(bio, a->msg_imprint); 31 BIO_printf(bio, "Policy OID: "); 34 BIO_printf(bio, "unspecified\n"); 36 TS_OBJ_print_bio(bio, policy_id); 38 BIO_printf(bio, "Nonce: "); 40 BIO_printf(bio, "unspecified"); 42 TS_ASN1_INTEGER_print_bio(bio, a->nonce) [all...] |
| ts_lib.c | 19 int TS_ASN1_INTEGER_print_bio(BIO *bio, const ASN1_INTEGER *num) 29 result = BIO_write(bio, "0x", 2) > 0; 30 result = result && BIO_write(bio, hex, strlen(hex)) > 0; 38 int TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj) 43 BIO_printf(bio, "%s\n", obj_txt); 48 int TS_ext_print_bio(BIO *bio, const STACK_OF(X509_EXTENSION) *extensions) 54 BIO_printf(bio, "Extensions:\n") [all...] |
| /src/crypto/external/apache2/openssl/dist/ssl/quic/ |
| quic_trace.c | 10 #include <openssl/bio.h> 45 /* Print a non-NUL terminated string to BIO */ 46 static void put_str(BIO *bio, char *str, size_t slen) 51 BIO_printf(bio, "%c", str[i]); 54 static void put_data(BIO *bio, const uint8_t *data, size_t datalen) 59 BIO_printf(bio, "%02x", data[i]); 62 static void put_conn_id(BIO *bio, QUIC_CONN_ID *id 568 BIO *bio = arg; local [all...] |
| /src/crypto/external/bsd/openssl.old/dist/test/ossl_shim/ |
| packeted_bio.h | 14 #include <openssl/bio.h> 16 // PacketedBioCreate creates a filter BIO which implements a reliable in-order 20 // During a |BIO_read|, the peer may signal the filter BIO to simulate a 25 bssl::UniquePtr<BIO> PacketedBioCreate(bool advance_clock); 27 // PacketedBioGetClock returns the current time for |bio|. 28 timeval PacketedBioGetClock(const BIO *bio); 30 // PacketedBioAdvanceClock advances |bio|'s internal clock and returns true if 32 bool PacketedBioAdvanceClock(BIO *bio); [all...] |
| async_bio.h | 14 #include <openssl/bio.h> 17 // AsyncBioCreate creates a filter BIO for testing asynchronous state 19 // and return EAGAIN unless explicitly allowed. Each async BIO has a 21 // incremented, bytes are allowed to flow through the BIO. 22 bssl::UniquePtr<BIO> AsyncBioCreate(); 24 // AsyncBioCreateDatagram creates a filter BIO for testing for 27 bssl::UniquePtr<BIO> AsyncBioCreateDatagram(); 29 // AsyncBioAllowRead increments |bio|'s read quota by |count|. 30 void AsyncBioAllowRead(BIO *bio, size_t count) [all...] |
| async_bio.cc | 15 #include <openssl/bio.h> 28 AsyncBio *GetData(BIO *bio) { 29 return (AsyncBio *)BIO_get_data(bio); 32 static int AsyncWrite(BIO *bio, const char *in, int inl) { 33 AsyncBio *a = GetData(bio); 34 if (a == NULL || BIO_next(bio) == NULL) { 39 return BIO_write(BIO_next(bio), in, inl); 42 BIO_clear_retry_flags(bio); [all...] |
| packeted_bio.cc | 55 PacketedBio *GetData(BIO *bio) { 56 return (PacketedBio *)BIO_get_data(bio); 59 const PacketedBio *GetData(const BIO *bio) { 60 return GetData(const_cast<BIO*>(bio)); 63 // ReadAll reads |len| bytes from |bio| into |out|. It returns 1 on success and 65 static int ReadAll(BIO *bio, uint8_t *out, size_t len) [all...] |
| /src/crypto/external/apache2/openssl/dist/test/ |
| bio_memleak_test.c | 12 #include <openssl/bio.h> 19 BIO *bio; local 21 static const char str[] = "BIO test\n"; 24 bio = BIO_new(BIO_s_mem()); 25 if (!TEST_ptr(bio)) 30 BIO_set_mem_buf(bio, &bufmem, BIO_NOCLOSE); 31 BIO_set_flags(bio, BIO_FLAGS_MEM_RDONLY); 32 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(str))) 39 BIO_free(bio); 46 BIO *bio = NULL; local 74 BIO *bio; local 109 BIO *bio, *bio2 = NULL; local 151 BIO *bio = NULL; local 187 BIO *bio = NULL; local 240 BIO *bio = NULL, *out = NULL; local [all...] |
| bio_core_test.c | 11 #include <openssl/bio.h> 16 BIO *bio; member in struct:ossl_core_bio_st 19 static int tst_bio_core_read_ex(OSSL_CORE_BIO *bio, char *data, size_t data_len, 22 return BIO_read_ex(bio->bio, data, data_len, bytes_read); 25 static int tst_bio_core_write_ex(OSSL_CORE_BIO *bio, const char *data, 28 return BIO_write_ex(bio->bio, data, data_len, written); 31 static int tst_bio_core_gets(OSSL_CORE_BIO *bio, char *buf, int size [all...] |
| membio_test.c | 10 #include <openssl/bio.h> 16 BIO *bio = BIO_new(BIO_s_dgram_mem()), *rbio = NULL; local 24 if (!TEST_ptr(bio)) 31 /* Setting the EOF return value on a non datagram mem BIO should be fine */ 35 /* Setting the EOF return value on a datagram mem BIO should fail */ 36 if (!TEST_int_le(BIO_set_mem_eof_return(bio, 0), 0)) 40 if (!TEST_int_eq(BIO_write(bio, msg1, sizeof(msg1)), sizeof(msg1))) 42 if (!TEST_int_eq(BIO_write(bio, msg2, sizeof(msg2)), sizeof(msg2))) 44 if (!TEST_int_eq(BIO_write(bio, msg3, sizeof(msg3)), sizeof(msg3)) [all...] |
| /src/crypto/external/bsd/openssl/dist/test/ |
| bio_memleak_test.c | 12 #include <openssl/bio.h> 19 BIO *bio; local 21 static const char str[] = "BIO test\n"; 24 bio = BIO_new(BIO_s_mem()); 25 if (!TEST_ptr(bio)) 30 BIO_set_mem_buf(bio, &bufmem, BIO_NOCLOSE); 31 BIO_set_flags(bio, BIO_FLAGS_MEM_RDONLY); 32 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(str))) 39 BIO_free(bio); 46 BIO *bio = NULL; local 74 BIO *bio; local 109 BIO *bio, *bio2 = NULL; local 151 BIO *bio = NULL; local 187 BIO *bio = NULL; local 240 BIO *bio = NULL, *out = NULL; local [all...] |
| bio_core_test.c | 11 #include <openssl/bio.h> 16 BIO *bio; member in struct:ossl_core_bio_st 19 static int tst_bio_core_read_ex(OSSL_CORE_BIO *bio, char *data, size_t data_len, 22 return BIO_read_ex(bio->bio, data, data_len, bytes_read); 25 static int tst_bio_core_write_ex(OSSL_CORE_BIO *bio, const char *data, 28 return BIO_write_ex(bio->bio, data, data_len, written); 31 static int tst_bio_core_gets(OSSL_CORE_BIO *bio, char *buf, int size [all...] |
| /src/crypto/external/bsd/openssl.old/dist/test/ |
| bio_memleak_test.c | 12 #include <openssl/bio.h> 21 BIO *bio; local 23 static const char str[] = "BIO test\n"; 26 bio = BIO_new(BIO_s_mem()); 27 if (!TEST_ptr(bio)) 32 BIO_set_mem_buf(bio, &bufmem, BIO_NOCLOSE); 33 BIO_set_flags(bio, BIO_FLAGS_MEM_RDONLY); 34 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(str))) 41 BIO_free(bio); 48 BIO *bio = NULL; local 76 BIO *bio; local 111 BIO *bio, *bio2 = NULL; local 153 BIO *bio = NULL; local 189 BIO *bio = NULL; local 242 BIO *bio = NULL, *out = NULL; local [all...] |
| /src/crypto/external/apache2/openssl/dist/providers/common/include/prov/ |
| bio.h | 11 #include <openssl/bio.h> 19 int ossl_prov_bio_read_ex(OSSL_CORE_BIO *bio, void *data, size_t data_len, 21 int ossl_prov_bio_write_ex(OSSL_CORE_BIO *bio, const void *data, size_t data_len, 23 int ossl_prov_bio_gets(OSSL_CORE_BIO *bio, char *buf, int size); 24 int ossl_prov_bio_puts(OSSL_CORE_BIO *bio, const char *str); 25 int ossl_prov_bio_ctrl(OSSL_CORE_BIO *bio, int cmd, long num, void *ptr); 26 int ossl_prov_bio_up_ref(OSSL_CORE_BIO *bio); 27 int ossl_prov_bio_free(OSSL_CORE_BIO *bio); 28 int ossl_prov_bio_vprintf(OSSL_CORE_BIO *bio, const char *format, va_list ap); 29 int ossl_prov_bio_printf(OSSL_CORE_BIO *bio, const char *format, ...) [all...] |
| /src/crypto/external/bsd/openssl/dist/providers/common/include/prov/ |
| bio.h | 11 #include <openssl/bio.h> 19 int ossl_prov_bio_read_ex(OSSL_CORE_BIO *bio, void *data, size_t data_len, 21 int ossl_prov_bio_write_ex(OSSL_CORE_BIO *bio, const void *data, size_t data_len, 23 int ossl_prov_bio_gets(OSSL_CORE_BIO *bio, char *buf, int size); 24 int ossl_prov_bio_puts(OSSL_CORE_BIO *bio, const char *str); 25 int ossl_prov_bio_ctrl(OSSL_CORE_BIO *bio, int cmd, long num, void *ptr); 26 int ossl_prov_bio_up_ref(OSSL_CORE_BIO *bio); 27 int ossl_prov_bio_free(OSSL_CORE_BIO *bio); 28 int ossl_prov_bio_vprintf(OSSL_CORE_BIO *bio, const char *format, va_list ap); 29 int ossl_prov_bio_printf(OSSL_CORE_BIO *bio, const char *format, ...) [all...] |
| /src/crypto/external/bsd/openssl.old/dist/ssl/ |
| t1_trce.c | 24 # define ssl_trace_list(bio, indent, msg, msglen, value, table) \ 25 do_ssl_trace_list(bio, indent, msg, msglen, value, \ 40 static int do_ssl_trace_list(BIO *bio, int indent, 52 BIO_indent(bio, indent, 80); 53 BIO_printf(bio, "%s (%d)\n", do_ssl_trace_str(val, tbl, ntbl), val); 600 static void ssl_print_hex(BIO *bio, int indent, const char *name, 605 BIO_indent(bio, indent, 80); 606 BIO_printf(bio, "%s (len=%d): ", name, (int)msglen) 1514 BIO *bio = arg; local [all...] |
| /src/crypto/external/bsd/openssl/dist/crypto/bio/ |
| bio_cb.c | 19 long BIO_debug_callback_ex(BIO *bio, int cmd, const char *argp, size_t len, 22 BIO *b; 31 left = BIO_snprintf(buf, sizeof(buf), "BIO[%p]: ", (void *)bio); 41 BIO_snprintf(p, left, "Free - %s\n", bio->method->name); 44 if (bio->method->type & BIO_TYPE_DESCRIPTOR) 46 bio->num, len, 47 bio->method->name, bio->num) [all...] |
| /src/crypto/external/apache2/openssl/dist/test/testutil/ |
| load.c | 21 BIO *bio = NULL; local 23 if (!TEST_ptr(file) || !TEST_ptr(bio = BIO_new(BIO_s_file()))) 25 if (TEST_int_gt(BIO_read_filename(bio, file), 0) 27 (void)TEST_ptr(cert = PEM_read_bio_X509(bio, &cert, NULL, NULL)); 29 BIO_free(bio); 36 BIO *bio; local 39 if (!TEST_ptr(file) || (bio = BIO_new_file(file, "r")) == NULL) 44 BIO_free(bio); 72 BIO *bio = NULL; local 95 BIO *bio = NULL; local [all...] |