Lines Matching defs:buf

361 static int asn1_object_dump(ASN1_OBJECT *a, char *buf, size_t len)
369 i = i2t_ASN1_OBJECT(buf, ilen, a);
725 static int ossl_bio_cf_out_write(BIO *bio, const char *buf, int blen)
736 nwritten = Curl_conn_cf_send(cf->next, data, buf, blen, &result);
748 static int ossl_bio_cf_in_read(BIO *bio, char *buf, int blen)
760 if(!buf)
763 nread = Curl_conn_cf_recv(cf->next, data, buf, blen, &result);
934 static char *ossl_strerror(unsigned long error, char *buf, size_t size)
938 *buf = '\0';
940 len = ossl_version(buf, size);
943 buf += len;
945 *buf++ = ':';
946 *buf++ = ' ';
947 *buf = '\0';
951 ERR_error_string_n((uint32_t)error, buf, size);
953 ERR_error_string_n(error, buf, size);
956 if(!*buf) {
959 strcpy(buf, msg);
962 return buf;
965 static int passwd_callback(char *buf, int num, int encrypting,
973 memcpy(buf, global_passwd, klen + 1);
1673 static int x509_name_oneline(X509_NAME *a, char *buf, size_t size)
1690 memcpy(buf, biomem->data, size);
1691 buf[size] = 0;
1820 char buf[256];
1824 engine, ossl_strerror(ERR_get_error(), buf, sizeof(buf)));
1891 char buf[1024];
1897 (void)SSL_read(backend->handle, buf, (int)sizeof(buf));
1903 nread = SSL_read(backend->handle, buf, (int)sizeof(buf));
1922 ossl_strerror(sslerr, buf, sizeof(buf)) :
1956 char buf[256]; /* We will use this for the OpenSSL error buffer, so it has
1980 buffsize = (int)sizeof(buf);
1989 nread = SSL_read(backend->handle, buf, buffsize);
2013 ossl_strerror(sslerror, buf, sizeof(buf)) :
2611 const void *buf, size_t len, SSL *ssl,
2684 * is at 'buf[0]'.
2692 msg_type = *(char *)buf;
2696 msg_type = (((char *)buf)[0] << 8) + ((char *)buf)[1];
2700 msg_type = *(char *)buf;
2714 CURLINFO_SSL_DATA_IN, (char *)buf, len);
4651 char *buf, /* store read data here */
4670 nread = (ssize_t)SSL_read(backend->handle, buf, buffsize);