SuB.LibSSL: | Types | Modinfo | Source |
SSL_CTX | SSL Context. |
Type SSL_CTX | |
Description | SSL Context. |
Methods Summary | |
---|---|
Accept | Accept incoming SSL connection. |
Bind | Bind a SSL socket. |
CAFile | Set a Certificate Authority file. |
CAVerify | Verify the Certificate Authority File. |
Close | Close And free the SSL_CTX. |
Context | Set a SSL_CTX context. |
Create | Creates a new SSL_CTX. |
GetFileTimeWin | Get windows file times. |
Init | Initialize SSL Library. |
ReadBytes | ReadBytes ssl. |
ReadString | ReadString ssl. |
RecieveFile | RecieveFile ssl. |
SendFile | SendFile ssl. |
SetCertFile | Set the Certificate file. |
SetCertPassword | Set the Certificate password. |
SetFileTime | Set time of a file. |
SetKeyFile | Set the key file. |
Shutdown | Shut down ssl connection. |
SSLConnect | Connect to SSL Socket. |
WriteBytes | WriteBytes ssl. |
WriteString | WriteString ssl. |
Method Accept:Int() | |
Returns | True if successful, false if unsuccessful. |
Description | Accept incoming SSL connection. |
Information | Listens and accepts incoming SSL connections. |
Method Bind:Int(port:Int) | |
Returns | True on success, false if unsuccessful. |
Description | Bind a SSL socket. |
Information | Bind a SSL Socket to a given port. |
Method CAFile:Int(file:String, path:String = Null) | |
Returns | True on success, false if unsuccessfull. |
Description | Set a Certificate Authority file. |
Information | Lets you set CACERT file for verifying certificates. |
Method CAVerify:Long() | |
Returns | True on success, false if unsuccessful. |
Description | Verify the Certificate Authority File. |
Information | Verifies the CACERT you have set for verifying certificates. |
Method Close() | |
Description | Close And free the SSL_CTX. |
Method Context(server:Int = False, encryption:Int = TLSv1_2_client_method) | |
Description | Set a SSL_CTX context. |
Information | Lets you set a context with a SSL_METHOD function Available functions: SSLv2_client_method SSLv2_server_method SSLv2_method SSLv3_client_method SSLv3_server_method SSLv3_method SSLv23_client_method (Negotiate highest SSL/TLS encryption (default)) SSLv23_server_method (Negotiate highest SSL/TLS encryption (default)) SSLv23_method TLSv1_client_method TLSv1_server_method TLSv1_method TLSv1_1_client_method TLSv1_1_server_method TLSv1_1_method TLSv1_2_client_method TLSv1_2_server_method TLSv1_2_method DTLSv1_client_method DTLSv1_server_method DTLSv1_method DTLSv1_2_client_method DTLSv1_2_server_method DTLSv1_2_method DTLS_client_method (DTLS v1.0 AND DTLS v1.2) DTLS_server_method (DTLS v1.0 AND DTLS v1.2) DTLS_method. |
Method Create:SSL_CTX() | |
Returns | SSL_CTX Type. |
Description | Creates a new SSL_CTX. |
Information | This Method is called when you create a new SSL Context. |
Method GetFileTimeWin:Byte Ptr(path:String) | |
Returns | Windows file times as 3 longs in a row (byte ptr) |
Description | Get windows file times. |
Information | Get the windows file times (access/write/creation) |
Method Init() | |
Description | Initialize SSL Library. |
Information | This Method has to be called before setting a context. |
Method ReadBytes:Byte[](size:Int = 0) | |
Returns | An array of bytes. |
Description | ReadBytes ssl. |
Information | Reads an array of bytes from a ssl connection. |
Method ReadString:String() | |
Returns | String read from ssl connection. |
Description | ReadString ssl. |
Information | Read a string from ssl connection. |
Method RecieveFile:Int(fname:String, size:Long, path:String = "") | |
Returns | True if successful, false if unsuccessful. |
Description | RecieveFile ssl. |
Information | Recieve a file from ssl connection. |
Method SendFile:Int(fname:String, path:String = "") | |
Returns | True if successful, false if unsuccessful. |
Description | SendFile ssl. |
Information | Send a file to ssl connection. |
Method SetCertFile:Int(file:String, ftype:Int = X509_FILETYPE_PEM) | |
Returns | True on success, false if unsuccessful. |
Description | Set the Certificate file. |
Information | Sets the Certificate file with a certificate type function Available certificate types: default: X509_FILETYPE_PEM X509_FILETYPE_ASN1 X509_FILETYPE_DEFAULT. |
Method SetCertPassword:Int(pwd:String) | |
Description | Set the Certificate password. |
Information | Sets the password for your certificate. |
Method SetFileTime:Int(path:String, time:Int, stime:Byte Ptr) | |
Returns | True if successful, false if unsuccessful. |
Description | Set time of a file. |
Information | Sets the filetime of a file (time=linux/unix, stime=win) |
Method SetKeyFile:Int(file:String, ftype:Int = X509_FILETYPE_PEM) | |
Returns | True on success, false if unsuccessful. |
Description | Set the key file. |
Information | Sets the Certificate key file with a certificate type function. |
Method Shutdown:Int() | |
Returns | True if successful, false if unsuccessful. |
Description | Shut down ssl connection. |
Information | Shuts down the ssl connection and closes the associated used socket(s) |
Method SSLConnect:Int(host:String, port:Int) | |
Returns | True on success, false if unsuccessful. |
Description | Connect to SSL Socket. |
Information | Connect to a SSL Socket using hostname/ip and port. |
Method WriteBytes:Int(data:Byte[]) | |
Returns | True if successful, false if unsuccessful. |
Description | WriteBytes ssl. |
Information | Write an array of bytes to a ssl connection. |
Method WriteString:Int(str:String) | |
Returns | True if successful, false if unsuccessful. |
Description | WriteString ssl. |
Information | Write a string to ssl connection. |
License | MIT |
---|---|
Copyright | Wrapper by Sub_Zero |
LD_OPTS | -L%PWD%/ssl/lib |