Lines Matching defs:buf

1015     char buf[X509_NAME_MAXLEN];
1016 char *namebuf = buf;
1050 if (buf != namebuf) {
1200 char buf[2048];
1303 len = i2t_ASN1_OBJECT(buf, sizeof(buf)-1, name->d.rid);
1308 } else if (len >= (int)sizeof(buf)) {
1311 v = PyUnicode_FromStringAndSize(buf, len);
1345 buf,
1356 v = PyUnicode_FromStringAndSize(buf, len);
1387 len = BIO_gets(biobuf, buf, sizeof(buf)-1);
1392 vptr = strchr(buf, ':');
1396 buf);
1402 v = PyUnicode_FromStringAndSize(buf, (vptr - buf));
1409 (len - (vptr - buf + 1)));
1576 char buf[2048];
1625 /* should not exceed 20 octets, 160 bits, so buf is big enough */
1627 len = BIO_gets(biobuf, buf, sizeof(buf)-1);
1632 sn_obj = PyUnicode_FromStringAndSize(buf, len);
1644 len = BIO_gets(biobuf, buf, sizeof(buf)-1);
1649 pnotBefore = PyUnicode_FromStringAndSize(buf, len);
1661 len = BIO_gets(biobuf, buf, sizeof(buf)-1);
1666 pnotAfter = PyUnicode_FromStringAndSize(buf, len);
1962 char buf[512] = {0};
1970 SSL_CIPHER_description(cipher, buf, sizeof(buf) - 1);
1971 /* Downcast to avoid a warning. Safe since buf is always 512 bytes */
1972 len = (int)strlen(buf);
1973 if (len > 1 && buf[len-1] == '\n')
1974 buf[len-1] = '\0';
1994 "description", buf,
2387 retval = SSL_write_ex(self->ssl, b->buf, (size_t)b->len, &count);
2511 mem = buffer->buf;
2735 char buf[PySSL_CB_MAXLEN];
2741 len = SSL_get_finished(self->ssl, buf, PySSL_CB_MAXLEN);
2745 len = SSL_get_peer_finished(self->ssl, buf, PySSL_CB_MAXLEN);
2761 return PyBytes_FromStringAndSize(buf, len);
3375 memcpy(self->alpn_protocols, protos->buf, protos->len);
3793 _password_callback(char *buf, int size, int rwflag, void *userdata)
3829 memcpy(buf, pw_info->password, pw_info->size);
4108 Py_buffer buf;
4109 if (PyObject_GetBuffer(cadata, &buf, PyBUF_SIMPLE)) {
4112 if (!PyBuffer_IsContiguous(&buf, 'C') || buf.ndim > 1) {
4113 PyBuffer_Release(&buf);
4119 r = _add_ca_certs(self, buf.buf, buf.len, SSL_FILETYPE_ASN1);
4120 PyBuffer_Release(&buf);
4925 nbytes = BIO_write(self->bio, b->buf, (int)b->len);
5183 const char *buf;
5186 buf = (const char *)view->buf;
5190 RAND_add(buf, (int)written, entropy);
5191 buf += written;