This API provides ability to create secure sockets.
This module provides SSL APIs for security connection, the implementation is based on xySSL.
The basic flow of using SSL APIs is as follows:
The platform doesn't have preloaded certificate agency certificate, so when connecting to a server and you've set verify type VM_SSL_VERIFY_REQUIRED, you will also need to set the certificate agency certificate of the website you want to connect by calling vm_ssl_load_ca_chain_certificate() after vm_ssl_connect().
|
Function |
Description |
|
This utility function decodes a buffer with base64 encoding. Call this function with *destination_length = 0 to obtain the required buffer size in *destination_length. | |
|
This utility function encodes a buffer with base64 encoding. Call this function with *destination_length = 0 to obtain the required buffer size in *destination_length. | |
|
Closes the connection. | |
|
Creates SSL connection to remote host. | |
|
Get the verify result. | |
|
Load certificate agency certificate in X.509 formate (.cer files) | |
|
read data from ssl connection. | |
|
This utility function hashes input buffer using the HMAC algorithm and the SHA-1 hash function to a 160 bits (20-bytes) hash value. | |
|
write data from ssl connection. |
|
Struct, Record, Enum |
Description |
|
Error values for vm_ssl_base64_encode and vm_ssl_base64_decode | |
|
SSL configuration context | |
|
Error values for connection related APIs, e.g. vm_ssl_read and vm_ssl_write. | |
|
Events passing to vm_ssl_connection_callback. | |
|
Error values for vm_ssl_get_verify_result. | |
|
Verification type used for socket connection. | |
|
Error values for vm_ssl_load_ca_chain_certificate. |
|
Type |
Description |
|
Callback function for connection events. This is configured in vm_ssl_context_t. | |
|
Handle to a SSL connection. |
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.