2005-06-28 07:04:36 +04:00
|
|
|
/*
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
xrdp: A Remote Desktop Protocol server.
|
2010-10-20 07:00:38 +04:00
|
|
|
Copyright (C) Jay Sorg 2004-2010
|
2005-06-28 07:04:36 +04:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if !defined(SSL_CALLS_H)
|
|
|
|
#define SSL_CALLS_H
|
|
|
|
|
2006-11-05 01:05:06 +03:00
|
|
|
#include "arch.h"
|
|
|
|
|
2011-05-29 10:56:10 +04:00
|
|
|
int
|
|
|
|
ssl_init(void);
|
|
|
|
int
|
|
|
|
ssl_finish(void);
|
2005-11-26 03:57:12 +03:00
|
|
|
void* APP_CC
|
|
|
|
ssl_rc4_info_create(void);
|
|
|
|
void APP_CC
|
|
|
|
ssl_rc4_info_delete(void* rc4_info);
|
|
|
|
void APP_CC
|
|
|
|
ssl_rc4_set_key(void* rc4_info, char* key, int len);
|
|
|
|
void APP_CC
|
|
|
|
ssl_rc4_crypt(void* rc4_info, char* data, int len);
|
|
|
|
void* APP_CC
|
|
|
|
ssl_sha1_info_create(void);
|
|
|
|
void APP_CC
|
|
|
|
ssl_sha1_info_delete(void* sha1_info);
|
|
|
|
void APP_CC
|
|
|
|
ssl_sha1_clear(void* sha1_info);
|
|
|
|
void APP_CC
|
|
|
|
ssl_sha1_transform(void* sha1_info, char* data, int len);
|
|
|
|
void APP_CC
|
|
|
|
ssl_sha1_complete(void* sha1_info, char* data);
|
|
|
|
void* APP_CC
|
|
|
|
ssl_md5_info_create(void);
|
|
|
|
void APP_CC
|
|
|
|
ssl_md5_info_delete(void* md5_info);
|
|
|
|
void APP_CC
|
|
|
|
ssl_md5_clear(void* md5_info);
|
|
|
|
void APP_CC
|
|
|
|
ssl_md5_transform(void* md5_info, char* data, int len);
|
|
|
|
void APP_CC
|
|
|
|
ssl_md5_complete(void* md5_info, char* data);
|
|
|
|
int APP_CC
|
|
|
|
ssl_mod_exp(char* out, int out_len, char* in, int in_len,
|
|
|
|
char* mod, int mod_len, char* exp, int exp_len);
|
2007-06-16 08:51:19 +04:00
|
|
|
int APP_CC
|
|
|
|
ssl_gen_key_xrdp1(int key_size_in_bits, char* exp, int exp_len,
|
|
|
|
char* mod, int mod_len, char* pri, int pri_len);
|
2005-06-28 07:04:36 +04:00
|
|
|
|
|
|
|
#endif
|