BIO *
BIO_new_buffer_ssl_connect(SSL_CTX *ctx)
{
-#ifndef OPENSSL_NO_SOCK
BIO *ret = NULL, *buf = NULL, *ssl = NULL;
if ((buf = BIO_new(BIO_f_buffer())) == NULL)
BIO_free(buf);
if (ssl != NULL)
BIO_free(ssl);
-#endif
return (NULL);
}
BIO *
BIO_new_ssl_connect(SSL_CTX *ctx)
{
-#ifndef OPENSSL_NO_SOCK
BIO *ret = NULL, *con = NULL, *ssl = NULL;
if ((con = BIO_new(BIO_s_connect())) == NULL)
err:
if (con != NULL)
BIO_free(con);
-#endif
return (NULL);
}
if (cbio)
send_ocsp_response(cbio, resp);
} else if (host) {
-#ifndef OPENSSL_NO_SOCK
resp = process_responder(bio_err, req, host, path,
port, use_ssl, headers, req_timeout);
if (!resp)
goto end;
-#else
- BIO_printf(bio_err, "Error creating connect BIO - sockets not supported.\n");
- goto end;
-#endif
} else if (respin) {
derbio = BIO_new_file(respin, "rb");
if (!derbio) {
bufbio = BIO_new(BIO_f_buffer());
if (!bufbio)
goto err;
-#ifndef OPENSSL_NO_SOCK
acbio = BIO_new_accept(port);
-#else
- BIO_printf(bio_err, "Error setting up accept BIO - sockets not supported.\n");
-#endif
if (!acbio)
goto err;
BIO_set_accept_bios(acbio, bufbio);
/* General functions. */
{ FUNC_TYPE_GENERAL, "asn1parse", asn1parse_main },
{ FUNC_TYPE_GENERAL, "ca", ca_main },
-#if !defined(OPENSSL_NO_SOCK) && !defined(OPENSSL_NO_SSL3)
{ FUNC_TYPE_GENERAL, "ciphers", ciphers_main },
-#endif
#ifndef OPENSSL_NO_CMS
{ FUNC_TYPE_GENERAL, "cms", cms_main },
#endif
{ FUNC_TYPE_GENERAL, "prime", prime_main },
{ FUNC_TYPE_GENERAL, "rand", rand_main },
{ FUNC_TYPE_GENERAL, "req", req_main },
-#if !defined(OPENSSL_NO_SOCK) && !defined(OPENSSL_NO_SSL3)
{ FUNC_TYPE_GENERAL, "s_client", s_client_main },
-#endif
-#if !defined(OPENSSL_NO_SOCK) && !defined(OPENSSL_NO_SSL3)
{ FUNC_TYPE_GENERAL, "s_server", s_server_main },
-#endif
-#if !defined(OPENSSL_NO_SOCK) && !defined(OPENSSL_NO_SSL3)
{ FUNC_TYPE_GENERAL, "s_time", s_time_main },
-#endif
{ FUNC_TYPE_GENERAL, "sess_id", sess_id_main },
{ FUNC_TYPE_GENERAL, "smime", smime_main },
#ifndef OPENSSL_NO_SPEED
#include "s_apps.h"
#include <openssl/ssl.h>
-#ifndef OPENSSL_NO_SOCK
static int ssl_sock_init(void);
}
return (1);
}
-#endif
BIO *
BIO_new_buffer_ssl_connect(SSL_CTX *ctx)
{
-#ifndef OPENSSL_NO_SOCK
BIO *ret = NULL, *buf = NULL, *ssl = NULL;
if ((buf = BIO_new(BIO_f_buffer())) == NULL)
BIO_free(buf);
if (ssl != NULL)
BIO_free(ssl);
-#endif
return (NULL);
}
BIO *
BIO_new_ssl_connect(SSL_CTX *ctx)
{
-#ifndef OPENSSL_NO_SOCK
BIO *ret = NULL, *con = NULL, *ssl = NULL;
if ((con = BIO_new(BIO_s_connect())) == NULL)
err:
if (con != NULL)
BIO_free(con);
-#endif
return (NULL);
}
char * SSL_get_shared_ciphers(const SSL *s, char *buf, int len);
int SSL_get_read_ahead(const SSL * s);
int SSL_pending(const SSL *s);
-#ifndef OPENSSL_NO_SOCK
int SSL_set_fd(SSL *s, int fd);
int SSL_set_rfd(SSL *s, int fd);
int SSL_set_wfd(SSL *s, int fd);
-#endif
#ifndef OPENSSL_NO_BIO
void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
BIO * SSL_get_rbio(const SSL *s);
return (ret);
}
-#ifndef OPENSSL_NO_SOCK
int
SSL_set_fd(SSL *s, int fd)
{
err:
return (ret);
}
-#endif
/* return length of latest Finished message we sent, copy to 'buf' */
char * SSL_get_shared_ciphers(const SSL *s, char *buf, int len);
int SSL_get_read_ahead(const SSL * s);
int SSL_pending(const SSL *s);
-#ifndef OPENSSL_NO_SOCK
int SSL_set_fd(SSL *s, int fd);
int SSL_set_rfd(SSL *s, int fd);
int SSL_set_wfd(SSL *s, int fd);
-#endif
#ifndef OPENSSL_NO_BIO
void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
BIO * SSL_get_rbio(const SSL *s);
return (ret);
}
-#ifndef OPENSSL_NO_SOCK
int
SSL_set_fd(SSL *s, int fd)
{
err:
return (ret);
}
-#endif
/* return length of latest Finished message we sent, copy to 'buf' */