
Data Structures | |
| class | DTLS_con |
| Contains information regarding a DTLS connection having UdpClient udp and IPEndPoint ep. Used to keep memory alive. More... | |
Static Public Member Functions | |
| static IntPtr | new_ssl (IntPtr ctx) |
| Create a new ssl structure More... | |
| static int | accept (IntPtr ssl) |
| Used for a server to accept a connection More... | |
| static int | connect (IntPtr ssl) |
| Used for a client to connect More... | |
| static int | read (IntPtr ssl, StringBuilder buf, int sz) |
| Read message from secure connection More... | |
| static int | read (IntPtr ssl, byte[] buf, int sz) |
| Read message from secure connection using a byte array More... | |
| static int | write (IntPtr ssl, StringBuilder buf, int sz) |
| Write message to secure connection More... | |
| static int | write (IntPtr ssl, byte[] buf, int sz) |
| Write message to secure connection More... | |
| static void | free (IntPtr ssl) |
| Free information stored in ssl struct More... | |
| static int | shutdown (IntPtr ssl) |
| Shutdown a connection More... | |
| static void | SetIORecv (IntPtr ctx, CallbackIORecv_delegate func) |
| Optional, can be used to set a custom receive function More... | |
| static void | SetIOSend (IntPtr ctx, CallbackIOSend_delegate func) |
| Optional, can be used to set a custom send function More... | |
| static IntPtr | CTX_new (IntPtr method) |
| Create a new CTX structure More... | |
| static IntPtr | CTX_dtls_new (IntPtr method) |
| Create a new CTX structure for a DTLS connection More... | |
| static void | CTX_free (IntPtr ctx) |
| Free information used in CTX structure More... | |
| static int | CTX_use_psk_identity_hint (IntPtr ctx, StringBuilder hint) |
| Set identity hint to use More... | |
| static void | CTX_set_psk_server_callback (IntPtr ctx, psk_delegate psk_cb) |
| Set the function to use for PSK connections More... | |
| static void | CTX_set_psk_client_callback (IntPtr ctx, psk_client_delegate psk_cb) |
| Set the function to use for PSK connections More... | |
| static void | set_psk_server_callback (IntPtr ssl, psk_delegate psk_cb) |
| Set the function to use for PSK connections on a single TLS/DTLS connection More... | |
| static int | set_fd (IntPtr ssl, Socket fd) |
| Set Socket for TLS connection More... | |
| static Socket | get_fd (IntPtr ssl) |
| Get socket of a TLS connection More... | |
| static int | set_dtls_fd (IntPtr ssl, UdpClient udp, IPEndPoint ep) |
| Set information needed to send and receive a DTLS connection More... | |
| static DTLS_con | get_dtls_fd (IntPtr ssl) |
| Get the pointer to DTLS_con class used for connection More... | |
| static int | get_ciphers (StringBuilder list, int sz) |
| Get available cipher suites More... | |
| static int | Init () |
| Initialize wolfSSL library More... | |
| static int | Cleanup () |
| Clean up wolfSSL library memory More... | |
| static IntPtr | useTLSv1_2_server () |
| Set up TLS version 1.2 method More... | |
| static IntPtr | useTLSv1_3_server () |
| Set up TLS version 1.3 method More... | |
| static IntPtr | usev23_server () |
| Use any TLS version More... | |
| static IntPtr | useTLSv1_2_client () |
| Set up TLS version 1.2 method More... | |
| static IntPtr | useTLSv1_3_client () |
| Set up TLS version 1.3 method More... | |
| static IntPtr | usev23_client () |
| Use any TLS version More... | |
| static IntPtr | useDTLSv1_2_server () |
| Set up DTLS version 1.2 More... | |
| static IntPtr | useDTLSv1_2_client () |
| Set up DTLS version 1.2 More... | |
| static string | get_current_cipher (IntPtr ssl) |
| Gets the current cipher suite being used in connection More... | |
| static int | CTX_set_cipher_list (IntPtr ctx, StringBuilder list) |
| Set available cipher suites for all ssl structs created from ctx More... | |
| static int | set_cipher_list (IntPtr ssl, StringBuilder list) |
| Set available cipher suite in local connection More... | |
| static string | get_version (IntPtr ssl) |
| Gets the version of the connection made ie TLSv1.2 More... | |
| static string | get_error (IntPtr ssl) |
| Get a string containing error value and reason More... | |
| static int | CTX_use_certificate_file (IntPtr ctx, string fileCert, int type) |
| Used to load in the certificate file More... | |
| static int | CTX_load_verify_locations (IntPtr ctx, string fileCert, string path) |
| Used to load in the peer trusted root file More... | |
| static int | CTX_use_PrivateKey_file (IntPtr ctx, string fileKey, int type) |
| Used to load in the private key from a file More... | |
| static int | SetTmpDH_file (IntPtr ssl, StringBuilder dhparam, int file_type) |
| Set temporary DH parameters More... | |
| static int | CTX_SetTmpDH_file (IntPtr ctx, StringBuilder dhparam, int file_type) |
| Set temporary DH parameters More... | |
| static int | CTX_SetMinDhKey_Sz (IntPtr ctx, short minDhKey) |
| Used to set the minimum size of DH key More... | |
| static int | CTX_set_verify (IntPtr ctx, int mode, CallbackVerify_delegate vc) |
| Set the certificate verification mode and optional callback function More... | |
| static int | set_verify (IntPtr ssl, int mode, CallbackVerify_delegate vc) |
| Set the certificate verification mode and optional callback function More... | |
| static int | SetLogging (loggingCb input) |
| Set the function to use for logging More... | |
| static void | log (int lvl, string msg) |
| Log a message to set logging function More... | |
|
inlinestatic |
Used for a server to accept a connection
| ssl | structure containing info for connection |
|
inlinestatic |
Clean up wolfSSL library memory
|
inlinestatic |
Used for a client to connect
| ssl | structure containing connection info |
|
inlinestatic |
Create a new CTX structure for a DTLS connection
| method | Method to use in connection ie DTLSv1.2 |
|
inlinestatic |
Free information used in CTX structure
| ctx | structure to free |
|
inlinestatic |
Used to load in the peer trusted root file
| ctx | CTX structure for TLS/SSL connections |
| fileCert | Name of the file to load including absolute path |
| type | path to multiple certificates (try to load all in path) |
|
inlinestatic |
Create a new CTX structure
| method | method to use such as TLSv1.2 |
|
inlinestatic |
Set available cipher suites for all ssl structs created from ctx
| ctx | CTX structure to set |
| list | List full of ciphers suites |
|
inlinestatic |
Set the function to use for PSK connections
| ctx | pointer to CTX that the function is set in |
| psk_cb | PSK function to use |
|
inlinestatic |
Set the function to use for PSK connections
| ctx | pointer to CTX that the function is set in |
| psk_cb | PSK function to use |
|
inlinestatic |
Set the certificate verification mode and optional callback function
| ctx | pointer to CTX that the function is set in |
| mode | See SSL_VERIFY options |
| vc | Optional verify callback function to use |
|
inlinestatic |
Used to set the minimum size of DH key
| ctx | Structure to store key size |
| minDhKey | Min key size |
|
inlinestatic |
Set temporary DH parameters
| ctx | Structure to set in |
| dhparam | file name |
| file_type | type of file ie PEM |
|
inlinestatic |
Used to load in the certificate file
| ctx | CTX structure for TLS/SSL connections |
| fileCert | Name of the file to load including absolute path |
| type | Type of file ie PEM or DER |
|
inlinestatic |
Used to load in the private key from a file
| ctx | CTX structure for TLS/SSL connections |
| fileKey | Name of the file, includeing absolute directory |
| type | Type of file ie PEM or DER |
|
inlinestatic |
Set identity hint to use
| ctx | pointer to structure of ctx to set hint in |
| hint | hint to use |
|
inlinestatic |
Free information stored in ssl struct
| ssl | pointer to ssl struct to free |
|
inlinestatic |
Get available cipher suites
| list | list to fill with cipher suite names |
| sz | size of list available to fill |
|
inlinestatic |
Gets the current cipher suite being used in connection
| ssl | SSL struct to get cipher suite from |
|
inlinestatic |
|
inlinestatic |
Get a string containing error value and reason
| ssl | SSL struct that had error |
|
inlinestatic |
Get socket of a TLS connection
| ssl | structure to get socket from |
|
inlinestatic |
Gets the version of the connection made ie TLSv1.2
| ssl | SSL struct to get version of |
|
inlinestatic |
Initialize wolfSSL library
|
inlinestatic |
Log a message to set logging function
| lvl | Level of log message |
| msg | Message to log |
|
inlinestatic |
Create a new ssl structure
| ctx | structure to create ssl structure from |
|
inlinestatic |
Read message from secure connection
| ssl | structure containing info about connection |
| buf | object to hold incoming message (Unicode format) |
| sz | size of available memory in buf |
|
inlinestatic |
Read message from secure connection using a byte array
| ssl | structure containing info about connection |
| buf | object to hold incoming message (raw bytes) |
| sz | size of available memory in buf |
|
inlinestatic |
Set available cipher suite in local connection
| ssl | Structure to set cipher suite in |
| list | List of cipher suites |
|
inlinestatic |
Set information needed to send and receive a DTLS connection
| ssl | structure to set information in |
| udp | UDP object to send and receive |
| ep | End point of connection |
|
inlinestatic |
Set Socket for TLS connection
| ssl | structure to set Socket in |
| fd | Socket to use |
|
inlinestatic |
Set the function to use for PSK connections on a single TLS/DTLS connection
| ctx | pointer to SSL that the function is set in |
| psk_cb | PSK function to use |
|
inlinestatic |
Set the certificate verification mode and optional callback function
| ctx | pointer to SSL object that the function is set in |
| mode | See SSL_VERIFY options |
| vc | Optional verify callback function to use |
|
inlinestatic |
Optional, can be used to set a custom receive function
| ctx | structure to set receive function in |
| func | function to use when reading socket |
|
inlinestatic |
Optional, can be used to set a custom send function
| ctx | structure to set function in |
| func | function to use when sending data |
|
inlinestatic |
Set the function to use for logging
| input | Function that conforms as to loggingCb |
|
inlinestatic |
Set temporary DH parameters
| ssl | Structure to set in |
| dhparam | file name |
| file_type | type of file ie PEM |
|
inlinestatic |
Shutdown a connection
| ssl | pointer to ssl struct to close connection of |
|
inlinestatic |
Set up DTLS version 1.2
|
inlinestatic |
Set up DTLS version 1.2
|
inlinestatic |
Set up TLS version 1.2 method
|
inlinestatic |
Set up TLS version 1.2 method
|
inlinestatic |
Set up TLS version 1.3 method
|
inlinestatic |
Set up TLS version 1.3 method
|
inlinestatic |
Use any TLS version
|
inlinestatic |
Use any TLS version
|
inlinestatic |
Write message to secure connection
| ssl | structure containing connection info |
| buf | message to send |
| sz | size of the message |
|
inlinestatic |
Write message to secure connection
| ssl | structure containing connection info |
| buf | message to send |
| sz | size of the message |