Lines Matching refs:buf

111 static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, size_t count);
467 char buf[1024]; in php_openssl_matches_common_name() local
473 cert_name_len = X509_NAME_get_text_by_NID(cert_name, NID_commonName, buf, sizeof(buf)); in php_openssl_matches_common_name()
477 } else if ((size_t)cert_name_len != strlen(buf)) { in php_openssl_matches_common_name()
478 php_error_docref(NULL, E_WARNING, "Peer certificate CN=`%.*s' is malformed", cert_name_len, buf); in php_openssl_matches_common_name()
479 } else if (php_openssl_matches_wildcard_name(subject_name, buf)) { in php_openssl_matches_common_name()
484 cert_name_len, buf, subject_name); in php_openssl_matches_common_name()
585 static int php_openssl_passwd_callback(char *buf, int num, int verify, void *data) /* {{{ */ in php_openssl_passwd_callback() argument
596 memcpy(buf, Z_STRVAL_P(val), Z_STRLEN_P(val)+1); in php_openssl_passwd_callback()
2022 static size_t php_openssl_sockop_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in php_openssl_sockop_read() argument
2024 return php_openssl_sockop_io( 1, stream, buf, count ); in php_openssl_sockop_read()
2028 static size_t php_openssl_sockop_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ in php_openssl_sockop_write() argument
2030 return php_openssl_sockop_io( 0, stream, (char*)buf, count ); in php_openssl_sockop_write()
2040 static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, size_t count) /* {{{ */ in php_openssl_sockop_io() argument
2099 nr_bytes = SSL_read(sslsock->ssl_handle, buf, (int)count); in php_openssl_sockop_io()
2109 nr_bytes = SSL_write(sslsock->ssl_handle, buf, (int)count); in php_openssl_sockop_io()
2194 nr_bytes = php_stream_socket_ops.read(stream, buf, count); in php_openssl_sockop_io()
2196 nr_bytes = php_stream_socket_ops.write(stream, buf, count); in php_openssl_sockop_io()
2444 char buf; in php_openssl_sockop_set_option() local
2467 int n = SSL_peek(sslsock->ssl_handle, &buf, sizeof(buf)); in php_openssl_sockop_set_option()
2483 …} else if (0 == recv(sslsock->s.socket, &buf, sizeof(buf), MSG_PEEK) && php_socket_errno() != EAGA… in php_openssl_sockop_set_option()