fix compilation without GnuTLS

svn path=/trunk/; revision=20305
This commit is contained in:
Tomas Kukosa 2007-01-04 13:26:45 +00:00
parent b9f69234ad
commit 8e6556a3ee
2 changed files with 9 additions and 2 deletions

View File

@ -150,7 +150,7 @@ ssl_md5_cleanup(SSL_MD5_CTX* md)
}
gint
ssl_cipher_setiv(gcry_cipher_hd_t *cipher,guchar* iv, gint iv_len)
ssl_cipher_setiv(SSL_CIPHER_CTX *cipher, guchar* iv, gint iv_len)
{
/* guchar * ivp; */
gint ret;
@ -1355,6 +1355,13 @@ ssl_decrypt_record(SslDecryptSession*ssl, SslDecoder* decoder, gint ct,
return 0;
}
gint
ssl_cipher_setiv(SSL_CIPHER_CTX *cipher, guchar* iv, gint iv_len)
{
ssl_debug_printf("ssl_cipher_setiv: impossible without glutls.\n");
return 0;
}
#endif /* HAVE_LIBGNUTLS */
/* get ssl data for this session. if no ssl data is found allocate a new one*/

View File

@ -692,7 +692,7 @@ extern void
ssl_data_set(StringInfo* buf, const guchar* src, guint len);
extern gint
ssl_cipher_setiv(gcry_cipher_hd_t *cipher,guchar* iv, gint iv_len);
ssl_cipher_setiv(SSL_CIPHER_CTX *cipher, guchar* iv, gint iv_len);
/** Load an RSA private key from specified file
@param fp the file that contain the key data