Home
last modified time | relevance | path

Searched refs:sbuf (Results 1 – 7 of 7) sorted by relevance

/openssl/test/
H A Dsha_test.c20 unsigned char buf[EVP_MAX_MD_SIZE], *sbuf; in test_static_sha_common() local
24 sbuf = (*md)(in, in_len, buf); in test_static_sha_common()
25 if (!TEST_ptr(sbuf) in test_static_sha_common()
26 || !TEST_ptr_eq(sbuf, buf) in test_static_sha_common()
27 || !TEST_mem_eq(sbuf, length, out, length)) in test_static_sha_common()
29 sbuf = (*md)(in, in_len, NULL); in test_static_sha_common()
30 if (!TEST_ptr(sbuf) in test_static_sha_common()
31 || !TEST_ptr_ne(sbuf, buf) in test_static_sha_common()
32 || !TEST_mem_eq(sbuf, length, out, length)) in test_static_sha_common()
H A Dwpackettest.c70 unsigned char sbuf[3]; in test_WPACKET_init() local
118 if (!TEST_true(WPACKET_init_static_len(&pkt, sbuf, sizeof(sbuf), 0)) in test_WPACKET_init()
126 || !TEST_mem_eq(sbuf, written, fixed, sizeof(sbuf)) in test_WPACKET_init()
128 || !TEST_true(WPACKET_init_static_len(&pkt, sbuf, sizeof(sbuf), 1)) in test_WPACKET_init()
135 || !TEST_mem_eq(sbuf, written, alloc, sizeof(alloc))) in test_WPACKET_init()
387 unsigned char sbuf[1024]; in test_WPACKET_init_der() local
396 if (!TEST_true(WPACKET_init_der(&pkt, sbuf, sizeof(sbuf))) in test_WPACKET_init_der()
430 if (!TEST_true(WPACKET_init_der(&pkt, sbuf, sizeof(sbuf)))) in test_WPACKET_init_der()
H A Dprov_config_test.c76 struct stat sbuf; in test_path_config() local
91 rc = stat(full_path, &sbuf); in test_path_config()
H A Dssl_old_test.c2109 char sbuf[1024 * 8]; in doit_localhost() local
2113 memset(sbuf, 0, sizeof(sbuf)); in doit_localhost()
2124 i = sizeof(sbuf); in doit_localhost()
2148 r = BIO_read(s_ssl_bio, sbuf, sizeof(sbuf)); in doit_localhost()
2388 char sbuf[1024 * 8]; in doit_biopair() local
2392 memset(sbuf, 0, sizeof(sbuf)); in doit_biopair()
2403 i = sizeof(sbuf); in doit_biopair()
2427 r = BIO_read(s_ssl_bio, sbuf, sizeof(sbuf)); in doit_biopair()
2611 char *cbuf = NULL, *sbuf = NULL; in doit() local
2822 i = BIO_write(s_bio, sbuf, j); in doit()
[all …]
H A Dacvp_test.c239 unsigned char *rbuf = NULL, *sbuf = NULL; in get_ecdsa_sig_rs_bytes() local
254 sbuf = OPENSSL_zalloc(s1_len); in get_ecdsa_sig_rs_bytes()
255 if (rbuf == NULL || sbuf == NULL) in get_ecdsa_sig_rs_bytes()
259 if (BN_bn2binpad(s1, sbuf, s1_len) <= 0) in get_ecdsa_sig_rs_bytes()
262 *s = sbuf; in get_ecdsa_sig_rs_bytes()
269 OPENSSL_free(sbuf); in get_ecdsa_sig_rs_bytes()
762 sbuf = OPENSSL_zalloc(s1_len); in get_dsa_sig_rs_bytes()
763 if (rbuf == NULL || sbuf == NULL) in get_dsa_sig_rs_bytes()
767 if (BN_bn2binpad(s1, sbuf, s1_len) <= 0) in get_dsa_sig_rs_bytes()
770 *s = sbuf; in get_dsa_sig_rs_bytes()
[all …]
H A Dsslapitest.c1032 unsigned char sbuf[16000]; in ping_pong_query() local
1057 while ((err = SSL_read(serverssl, &sbuf, sizeof(sbuf))) != sizeof(sbuf)) { in ping_pong_query()
1063 if (!TEST_true(SSL_write(serverssl, sbuf, sizeof(sbuf)) == sizeof(sbuf))) in ping_pong_query()
1078 if (!TEST_mem_eq(cbuf, sizeof(cbuf), sbuf, sizeof(sbuf))) in ping_pong_query()
1719 static unsigned char sbuf[16000]; in execute_cleanse_plaintext() local
1764 if (!TEST_int_eq(SSL_peek(serverssl, &sbuf, sizeof(sbuf)), sizeof(sbuf))) in execute_cleanse_plaintext()
1767 if (!TEST_mem_eq(cbuf, sizeof(cbuf), sbuf, sizeof(sbuf))) in execute_cleanse_plaintext()
1790 memset(sbuf, 0, sizeof(sbuf)); in execute_cleanse_plaintext()
1791 if (!TEST_int_eq(SSL_read(serverssl, &sbuf, sizeof(sbuf)), sizeof(sbuf))) in execute_cleanse_plaintext()
1794 if (!TEST_mem_eq(cbuf, sizeof(cbuf), sbuf, sizeof(cbuf))) in execute_cleanse_plaintext()
/openssl/apps/
H A Ds_client.c987 sbuf = app_malloc(BUFSIZZ, "sbuf"); in s_client_main()
2398 BIO_read(sbio, sbuf, BUFSIZZ); in s_client_main()
2441 BIO_read(sbio, sbuf, BUFSIZZ); in s_client_main()
2462 BIO_read(sbio, sbuf, BUFSIZZ); in s_client_main()
2499 sbuf[seen] = '\0'; in s_client_main()
2500 if (!strstr(sbuf, "<proceed")) in s_client_main()
2788 strncpy(sbuf, mbuf, 2); in s_client_main()
2789 make_uppercase(sbuf); in s_client_main()
2790 if (!HAS_PREFIX(sbuf, "OK")) { in s_client_main()
3152 ascii2ebcdic(&(sbuf[sbuf_off]), &(sbuf[sbuf_off]), sbuf_len); in s_client_main()
[all …]

Completed in 55 milliseconds