Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 25 of 70) sorted by relevance

123

/doc/designs/ddd/
A Dddd-06-mem-uv.c304 if (!buf) in on_rx_push()
371 free(buf->base); in net_read_done()
417 free(op->buf); in net_write_done()
427 uint8_t *buf; in flush_write_buf() local
430 if (!buf) in flush_write_buf()
435 free(buf); in flush_write_buf()
443 op->buf = buf; in flush_write_buf()
455 free(buf); in flush_write_buf()
637 op->buf = buf; in write_deferred()
679 free(buf); in post_read()
[all …]
A Dddd-05-mem-nonblocking.c139 int tx(APP_CONN *conn, const void *buf, int buf_len) argument
143 l = BIO_write(conn->ssl_bio, buf, buf_len);
168 int rx(APP_CONN *conn, void *buf, int buf_len) argument
172 l = BIO_read(conn->ssl_bio, buf, buf_len);
198 int read_net_tx(APP_CONN *conn, void *buf, int buf_len) argument
200 return BIO_read(conn->net_bio, buf, buf_len);
211 return BIO_write(conn->net_bio, buf, buf_len);
319 l = read(fd, buf, wspace > sizeof(buf) ? sizeof(buf) : wspace);
333 l2 = write_net_rx(conn, buf, l);
341 l = read_net_tx(conn, buf, sizeof(buf));
[all …]
A Dddd-01-conn-blocking.c101 int tx(BIO *bio, const void *buf, int buf_len) in tx() argument
103 return BIO_write(bio, buf, buf_len); in tx()
110 int rx(BIO *bio, void *buf, int buf_len) in rx() argument
112 return BIO_read(bio, buf, buf_len); in rx()
143 char buf[2048]; in main() local
174 l = rx(b, buf, sizeof(buf)); in main()
177 fwrite(buf, 1, l, stdout); in main()
A Dddd-03-fd-blocking.c94 int tx(SSL *ssl, const void *buf, int buf_len) in tx() argument
96 return SSL_write(ssl, buf, buf_len); in tx()
103 int rx(SSL *ssl, void *buf, int buf_len) in rx() argument
105 return SSL_read(ssl, buf, buf_len); in rx()
144 char buf[2048]; in main() local
200 l = rx(ssl, buf, sizeof(buf)); in main()
203 fwrite(buf, 1, l, stdout); in main()
A Dddd-02-conn-nonblocking-threads.c64 BIO *out, *buf; in new_conn() local
87 buf = BIO_new(BIO_f_buffer()); in new_conn()
88 if (buf == NULL) { in new_conn()
94 BIO_push(out, buf); in new_conn()
140 int tx(APP_CONN *conn, const void *buf, int buf_len) in tx() argument
146 l = BIO_write(conn->ssl_bio, buf, buf_len); in tx()
165 int rx(APP_CONN *conn, void *buf, int buf_len) in rx() argument
171 l = BIO_read(conn->ssl_bio, buf, buf_len); in rx()
A Dddd-02-conn-nonblocking.c64 BIO *out, *buf; in new_conn() local
100 buf = BIO_new(BIO_f_buffer()); in new_conn()
101 if (buf == NULL) { in new_conn()
107 BIO_push(out, buf); in new_conn()
152 int tx(APP_CONN *conn, const void *buf, int buf_len) in tx() argument
158 l = BIO_write(conn->ssl_bio, buf, buf_len); in tx()
177 int rx(APP_CONN *conn, void *buf, int buf_len) in rx() argument
183 l = BIO_read(conn->ssl_bio, buf, buf_len); in rx()
A Dddd-04-fd-nonblocking.c114 int tx(APP_CONN *conn, const void *buf, int buf_len) in tx() argument
120 l = SSL_write(conn->ssl, buf, buf_len); in tx()
143 int rx(APP_CONN *conn, void *buf, int buf_len) in rx() argument
149 l = SSL_read(conn->ssl, buf, buf_len); in rx()
/doc/man3/
A DERR_error_string.pod13 char *ERR_error_string(unsigned long e, char *buf);
14 void ERR_error_string_n(unsigned long e, char *buf, size_t len);
26 error code I<e>, and places it at I<buf>. I<buf> must be at least 256
27 bytes long. If I<buf> is B<NULL>, the error string is placed in a
35 For ERR_error_string_n(), I<buf> B<MUST NOT> be NULL.
56 string if I<buf> B<== NULL>, I<buf> otherwise.
A DOSSL_PARAM_BLD.pod37 const char *buf, size_t bsize);
39 char *buf, size_t bsize);
41 const void *buf, size_t bsize);
43 void *buf, size_t bsize);
105 object that references the UTF8 string specified by I<buf>.
108 The string that I<buf> points to is stored by reference and must remain in
112 object that references the octet string specified by I<buf> and <bsize>.
117 object that references the UTF8 string specified by I<buf>.
120 The string I<buf> points to is stored by reference and must remain in
124 object that references the octet string specified by I<buf>.
[all …]
A DOPENSSL_hexchar2int.pod15 int OPENSSL_hexstr2buf_ex(unsigned char *buf, size_t buf_n, long *buflen,
19 const unsigned char *buf, long buflen,
21 char *OPENSSL_buf2hexstr(const unsigned char *buf, long buflen);
29 resulting string of bytes in the given I<buf>.
35 for I<buf>.
45 OPENSSL_buf2hexstr_ex() encodes the contents of the given I<buf> with
A Dd2i_X509.pod600 unsigned char *buf;
602 buf = NULL;
610 unsigned char *buf;
615 p = buf;
623 unsigned char *buf;
628 p = buf;
637 unsigned char *buf;
644 p = buf;
656 unsigned char *buf;
661 i2d_X509(x, &buf);
[all …]
A DRAND_bytes.pod12 int RAND_bytes(unsigned char *buf, int num);
13 int RAND_priv_bytes(unsigned char *buf, int num);
15 int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num,
17 int RAND_priv_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num,
26 int RAND_pseudo_bytes(unsigned char *buf, int num);
31 secure pseudo random generator (CSPRNG) and stores them in B<buf>. B<buf> B<MUST NOT> be NULL.
A DBIO_set_callback.pod169 =item B<BIO_gets(b, buf, size)>
171 callback_ex(b, BIO_CB_GETS, buf, size, 0, 0L, 1, NULL, NULL)
175 callback(b, BIO_CB_GETS, buf, size, 0L, 1L)
179 callback_ex(b, BIO_CB_GETS | BIO_CB_RETURN, buf, size, 0, 0L, retvalue,
184 callback(b, BIO_CB_GETS|BIO_CB_RETURN, buf, size, 0L, retvalue)
188 =item B<BIO_puts(b, buf)>
190 callback_ex(b, BIO_CB_PUTS, buf, 0, 0, 0L, 1L, NULL);
194 callback(b, BIO_CB_PUTS, buf, 0, 0L, 1L)
198 callback_ex(b, BIO_CB_PUTS | BIO_CB_RETURN, buf, 0, 0, 0L, retvalue, &written)
202 callback(b, BIO_CB_PUTS|BIO_CB_RETURN, buf, 0, 0L, retvalue)
A DBIO_read.pod17 int BIO_gets(BIO *b, char *buf, int size);
18 int BIO_get_line(BIO *b, char *buf, int size);
20 int BIO_puts(BIO *b, const char *buf);
33 the data in I<buf>.
36 in I<buf>. Usually this operation will attempt to read a line of data
46 or the maximum length I<size-1> is reached and places the data in I<buf>.
53 BIO_write() attempts to write I<len> bytes from I<buf> to BIO I<b>.
55 BIO_puts() attempts to write a NUL-terminated string I<buf> to BIO I<b>.
A DRAND_set_rand_method.pod45 int (*seed)(const void *buf, int num);
46 int (*bytes)(unsigned char *buf, int num);
48 int (*add)(const void *buf, int num, double entropy);
49 int (*pseudorand)(unsigned char *buf, int num);
A DSSL_CTX_set_default_passwd_cb.pod49 B<buf> which is of size B<size>. The actual length of the password must
86 int my_cb(char *buf, int size, int rwflag, void *u)
88 strncpy(buf, (char *)u, size);
89 buf[size - 1] = '\0';
90 return strlen(buf);
A DX509_NAME_get_index_by_NID.pod21 char *buf, int len);
23 char *buf, int len);
47 will be written and the text written to B<buf> will be null
49 excluding the terminating null. If B<buf> is <NULL> then the amount
50 of space needed in B<buf> (excluding the final null) is returned.
A DSSL_CTX_set_msg_callback.pod18 int content_type, const void *buf,
24 int content_type, const void *buf,
29 const void *buf, size_t len, SSL *ssl, void *arg);
74 =item I<buf>, I<len>
76 I<buf> points to a buffer containing the protocol message or other data (in the
121 Used when a TLS record is sent or received. The B<buf> contains the record header
129 an "inner" content type. B<buf> contains the encoded "inner" content type byte.
A DRAND_add.pod16 void RAND_add(const void *buf, int num, double randomness);
17 void RAND_seed(const void *buf, int num);
46 RAND_add() mixes the B<num> bytes at B<buf> into the internal state
51 B<buf>, in bytes, and should be a number between zero and B<num>.
54 The content of B<buf> cannot be recovered from subsequent random generator output.
A DOSSL_PARAM_int.pod65 OSSL_PARAM OSSL_PARAM_construct_TYPE(const char *key, TYPE *buf);
66 OSSL_PARAM OSSL_PARAM_construct_BN(const char *key, unsigned char *buf,
68 OSSL_PARAM OSSL_PARAM_construct_utf8_string(const char *key, char *buf,
70 OSSL_PARAM OSSL_PARAM_construct_octet_string(const char *key, void *buf,
72 OSSL_PARAM OSSL_PARAM_construct_utf8_ptr(const char *key, char **buf,
74 OSSL_PARAM OSSL_PARAM_construct_octet_ptr(const char *key, void **buf,
194 A parameter with name I<key>, storage I<buf>, size I<bsize> and return
199 A parameter with name I<key>, storage I<buf> and size I<bsize> is created.
205 A parameter with name I<key>, storage I<buf> and size I<bsize> is created.
209 A parameter with name I<key>, storage pointer I<*buf> and size I<bsize>
[all …]
A DUI_UTIL_read_pw.pod12 int UI_UTIL_read_pw_string(char *buf, int length, const char *prompt,
14 int UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt,
21 prompt, and stores it in B<buf>.
A DRAND_egd.pod14 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int num);
30 If B<buf> is B<NULL>, it is equivalent to RAND_egd_bytes().
31 If B<buf> is not B<NULL>, then the data is copied to the buffer and
/doc/internal/man3/
A Dossl_global_properties_no_mirrored.pod13 const OSSL_PROPERTY_LIST *list, char *buf,
23 converts it to a string. If I<buf> is non NULL then the string will be stored
24 in I<buf>. The size of the buffer is provided in I<bufsize>. If I<bufsize> is
25 too short then the string will be truncated. If I<buf> is NULL then the length
27 properties in it then the empty string will be stored in I<buf>.
A Dossl_rand_get_entropy.pod22 unsigned char *buf, size_t len);
24 unsigned char *buf, size_t len);
32 unsigned char *buf, size_t len);
34 unsigned char *buf, size_t len);
50 ossl_rand_get_entropy(). The entropy buffer is pointed to by I<buf>
54 ossl_rand_get_user_entropy(). The entropy buffer is pointed to by I<buf>
72 is pointed to by I<buf> and is of length I<len> bytes.
A Dossl_bio_print_hex.pod12 int ossl_bio_print_hex(BIO *out, unsigned char *buf, int len);
17 input I<buf> that is I<len> bytes in length.

Completed in 56 milliseconds

123