RSA BSAFE SSL-C

Security protocol components for C

Search

ssl_lib.h

Go to the documentation of this file.
00001 /* $Id: ssl_lib.h,v 1.39 2003/09/22 04:03:39 jmckee Exp $ */
00002 /*
00003  * Copyright (C) 1999-2003 RSA Security Inc. All rights reserved.
00004  *
00005  * This work contains proprietary information of RSA Security.
00006  * Distribution is limited to authorized licensees of RSA
00007  * Security. Any unauthorized reproduction, distribution or
00008  * modification of this work is strictly prohibited.
00009  */
00010 
00017 #ifndef HEADER_SSL_LIB_H
00018 #define HEADER_SSL_LIB_H
00019 
00020 #ifdef  __cplusplus
00021 extern "C" {
00022 #endif /* __cplusplus */
00023 
00028 #ifndef SSLC_SMALL_CODE
00029 void R_CDECL SSL_set_read_ahead(SSL * ssl, int yes);
00030 int R_CDECL SSL_get_read_ahead(SSL * ssl);
00031 
00032 #else /* SSLC_SMALL_CODE */
00033 
00057 #define SSL_set_read_ahead(ssl, yes) ssl->read_ahead = yes
00058 
00083 #define SSL_get_read_ahead(ssl) ssl->read_ahead
00084 #endif /* !SSLC_SMALL_CODE */
00085 
00086 /* end group SSL_IO_OPERATION_FUNCS */
00095 long R_CDECL SSL_CTX_set_options(SSL_CTX * ctx, long op);
00096 long R_CDECL SSL_CTX_get_options(SSL_CTX * ctx);
00097 /* end group SSL_CTX_FUNCS */
00107 long R_CDECL SSL_set_options(SSL * ssl, long op);
00108 long R_CDECL SSL_get_options(SSL * ssl);
00109 /* end group SSL_MANAGEMENT_FUNCS */
00122 int R_CDECL SSL_set_message_size(SSL *ssl, int cmd, long size);
00123 long R_CDECL SSL_get_message_size(SSL *ssl, int cmd);
00124 int R_CDECL SSL_set_write_buf_size(SSL *ssl, int size);
00125 int R_CDECL SSL_get_write_buf_size(SSL *ssl);
00126 int R_CDECL SSL_set_read_buf_size(SSL *ssl, int size);
00127 int R_CDECL SSL_get_read_buf_size(SSL *ssl);
00128 
00129 int R_CDECL SSL_CTX_set_message_size(SSL_CTX *ctx, int cmd, long size);
00130 long R_CDECL SSL_CTX_get_message_size(SSL_CTX *ctx, int cmd);
00131 int R_CDECL SSL_CTX_set_write_buf_size(SSL_CTX *ctx, int size);
00132 int R_CDECL SSL_CTX_get_write_buf_size(SSL_CTX *ctx);
00133 int R_CDECL SSL_CTX_set_read_buf_size(SSL_CTX *ctx, int size);
00134 int R_CDECL SSL_CTX_get_read_buf_size(SSL_CTX *ctx);
00135 void R_CDECL SSL_CTX_set_read_ahead(SSL_CTX * ssl, int yes);
00136 int R_CDECL SSL_CTX_get_read_ahead(SSL_CTX * ssl);
00137 /* end group SSL_BUFFER_FUNCS */
00142 #ifdef  __cplusplus
00143 }
00144 #endif /* __cplusplus */
00145 #endif /* HEADER_SSL_LIB_H */

Copyright (c) 1999-2004 RSA Security Inc. All rights reserved. 050-001001-2600-000-000 - 2.6