SWILIB API (NSG)    
Loading...
Searching...
No Matches
openssl.h
Go to the documentation of this file.
1#pragma once
2
3#ifndef __IN_SWILIB__
4#include "base.h"
5#endif
6
8
31
47__swi_begin(0x1C2)
48BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
49__swi_end(0x1C2, BN_bin2bn, (s, len, ret));
50
67__swi_begin(0x240)
68uint8_t *MD5_Hash(const uint8_t *data, unsigned long len, uint8_t *hash)
69__swi_end(0x240, MD5_Hash, (data, len, hash));
70
75__swi_begin(0x23D)
77__swi_end(0x23D, MD5_Init, (c));
78
85__swi_begin(0x23E)
86void MD5_Update(MD5_CTX *c, const void *data, unsigned long len)
87__swi_end(0x23E, MD5_Update, (c, data, len));
88
94__swi_begin(0x23F)
95void MD5_Final(uint8_t *hash, MD5_CTX *c)
96__swi_end(0x23F, MD5_Final, (hash, c));
97
109__swi_begin(0x1BC)
111__swi_end(0x1BC, SHA1_Init, (c));
112
119__swi_begin(0x1BD)
120void SHA1_Update(SHA_CTX *c, const void *data, unsigned long len)
121__swi_end(0x1BD, SHA1_Update, (c, data, len));
122
128__swi_begin(0x1BE)
129void SHA1_Final(unsigned char *hash, SHA_CTX *c)
130__swi_end(0x1BE, SHA1_Final, (hash, c));
131
144__swi_begin(0x1BF)
146__swi_end(0x1BF, RSA_new_method, (method));
147
158__swi_begin(0x1C1)
159int RSA_sign(int type, unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa)
160__swi_end(0x1C1, RSA_sign, (type, m, m_len, sigret, siglen, rsa));
161
166__swi_begin(0x1C0)
167void RSA_free(RSA *rsa)
168__swi_end(0x1C0, RSA_free, (rsa));
169
183__swi_begin(0x8394)
186
198__swi_begin(0x395)
201
207__swi_begin(0x396)
209__swi_end(0x396, SSL_CTX_new, (meth));
210
215__swi_begin(0x397)
217__swi_end(0x397, SSL_CTX_free, (ctx));
218
226__swi_begin(0x398)
227long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg)
228__swi_end(0x398, SSL_CTX_ctrl, (ctx, cmd, larg, parg));
229
235__swi_begin(0x399)
237__swi_end(0x399, SSL_new, (ctx));
238
245__swi_begin(0x39A)
246int SSL_set_fd(SSL *s, int fd)
247__swi_end(0x39A, SSL_set_fd, (s, fd));
248
254__swi_begin(0x39B)
256__swi_end(0x39B, SSL_connect, (ssl));
257
263__swi_begin(0x39C)
265__swi_end(0x39C, SSL_shutdown, (ssl));
266
274__swi_begin(0x39D)
275int SSL_read(SSL *ssl, void *buf, int num)
276__swi_end(0x39D, SSL_read, (ssl, buf, num));
277
287__swi_begin(0x39E)
288int SSL_peek(SSL *ssl, void *buf, int num)
289__swi_end(0x39E, SSL_peek, (ssl, buf, num));
290
298__swi_begin(0x39F)
299int SSL_write(SSL *ssl, const void *buf, int num)
300__swi_end(0x39F, SSL_write, (ssl, buf, num));
301
306__swi_begin(0x3A0)
307void SSL_free(SSL *ssl)
308__swi_end(0x3A0, SSL_free, (ssl));
309
316__swi_begin(0x3A1)
317int SSL_set_session(SSL *ssl, SSL_SESSION *session)
318__swi_end(0x3A1, SSL_set_session, (ssl, session));
319
324__swi_begin(0x3A2)
326__swi_end(0x3A2, SSL_SESSION_free, (sess));
327
340__swi_begin(0x3AC)
342__swi_end(0x3AC, EVP_add_cipher, (c));
343
347
#define __swilib_begin
Definition doxygen.h:29
#define __swi_end(number, func, call)
Definition doxygen.h:33
#define __swi_begin(number)
Definition doxygen.h:32
#define __swilib_end
Definition doxygen.h:30
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.
Definition rsa.h:109
Definition ssl.h:523
#define const
Definition zconf.h:115