159int RSA_sign(
int type,
unsigned char *m,
unsigned int m_len,
unsigned char *sigret,
unsigned int *siglen,
RSA *rsa)
#define __swi_end(number, func, call)
#define __swi_begin(number)
void MD5_Init(MD5_CTX *c)
Initialize a MD5_CTX structure.
uint8_t * MD5_Hash(const uint8_t *data, unsigned long len, uint8_t *hash)
Calculate MD5 hash by single function.
void SSL_SESSION_free(SSL_SESSION *sess)
Free an allocated SSL_SESSION structure.
int SSL_peek(SSL *ssl, void *buf, int num)
Read bytes from a SSL connection.
void MD5_Update(MD5_CTX *c, const void *data, unsigned long len)
Hash chunk of the data.
void SHA1_Init(SHA_CTX *c)
Initialize a SHA_CTX structure.
SSL_METHOD * TLSv1_client_method()
Get the TLSv1 client method.
SSL_CTX * SSL_CTX_new(SSL_METHOD *meth)
Allocate and initialize an SSL_CTX structure so that method will be used for the SSL operations.
int RSA_sign(int type, unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa)
Sign message digest by the RSA.
int SSL_read(SSL *ssl, void *buf, int num)
Read bytes from a SSL connection.
int SSL_connect(SSL *ssl)
Initiate the TLS/SSL handshake with an TLS/SSL server.
SSL * SSL_new(SSL_CTX *ctx)
Create an SSL structure for a connection.
void SHA1_Update(SHA_CTX *c, const void *data, unsigned long len)
Hash chunk of the data.
int SSL_set_fd(SSL *s, int fd)
Connect the SSL object with a file descriptor.
void MD5_Final(uint8_t *hash, MD5_CTX *c)
Finalize the MD5 calculation and get hash.
void SSL_CTX_free(SSL_CTX *ctx)
Free SSL_CTX structure.
RSA * RSA_new_method(RSA_METHOD *method)
Allocate and initialize an RSA structure so that method will be used for the RSA operations.
int SSL_write(SSL *ssl, const void *buf, int num)
Write bytes to a SSL connection.
BIGNUM * BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
Convert the positive integer in big-endian form into a BIGNUM.
int EVP_add_cipher(EVP_CIPHER *c)
Add new EVP cipher.
void SHA1_Final(unsigned char *hash, SHA_CTX *c)
Finalize the SHA1 calculation and get hash.
void SSL_free(SSL *ssl)
Free an allocated SSL structure.
int SSL_shutdown(SSL *ssl)
Shut down a SSL connection.
RAND_METHOD * RAND_get_rand_method(void)
Get selected random method.
long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg)
Manipulate settings of the SSL_CTX object.
int SSL_set_session(SSL *ssl, SSL_SESSION *session)
Set a SSL session to be used during SSL connect.
void RSA_free(RSA *rsa)
Free RSA structure.