sipxportlib  Version 3.3
Classes | Macros | Typedefs | Enumerations
OsTLS.h File Reference
#include "os/OsBSem.h"
#include "os/OsSysLog.h"
#include "utl/UtlString.h"
#include "utl/UtlHashMap.h"
#include <nspr.h>
#include <seccomon.h>
#include <secmod.h>
Include dependency graph for OsTLS.h:

Go to the source code of this file.

Classes

class  ITlsSink
 

Macros

#define MAX_CERT_DIR_LENGTH   256
 

Typedefs

typedef enum SECURITY_CAUSE SECURITY_CAUSE
 

Enumerations

enum  SECURITY_CAUSE {
  E_SECURITY_CAUSE_UNKNOWN = 0, E_SECURITY_CAUSE_NORMAL, E_SECURITY_CAUSE_ENCRYPT_SUCCESS, E_SECURITY_CAUSE_ENCRYPT_FAILURE_LIB_INIT,
  E_SECURITY_CAUSE_ENCRYPT_FAILURE_BAD_PUBLIC_KEY, E_SECURITY_CAUSE_ENCRYPT_FAILURE_INVALID_PARAMETER, E_SECURITY_CAUSE_DECRYPT_SUCCESS, E_SECURITY_CAUSE_DECRYPT_FAILURE_DB_INIT,
  E_SECURITY_CAUSE_DECRYPT_FAILURE_BAD_DB_PASSWORD, E_SECURITY_CAUSE_DECRYPT_FAILURE_INVALID_PARAMETER, E_SECURITY_CAUSE_DECRYPT_BAD_SIGNATURE, E_SECURITY_CAUSE_DECRYPT_MISSING_SIGNATURE,
  E_SECURITY_CAUSE_DECRYPT_SIGNATURE_REJECTED, E_SECURITY_CAUSE_TLS_SERVER_CERTIFICATE, E_SECURITY_CAUSE_TLS_BAD_PASSWORD, E_SECURITY_CAUSE_TLS_LIBRARY_FAILURE,
  E_SECURITY_CAUSE_REMOTE_HOST_UNREACHABLE, E_SECURITY_CAUSE_TLS_CONNECTION_FAILURE, E_SECURITY_CAUSE_TLS_HANDSHAKE_FAILURE, E_SECURITY_CAUSE_SIGNATURE_NOTIFY,
  E_SECURITY_CAUSE_TLS_CERTIFICATE_REJECTED
}
 

Macro Definition Documentation

#define MAX_CERT_DIR_LENGTH   256

Typedef Documentation

Enumeration Type Documentation

Enumerator
E_SECURITY_CAUSE_UNKNOWN 

An UNKNOWN cause code is generated when the state for the security operation is no longer known. This is generally an error condition; see the info structure for details.

E_SECURITY_CAUSE_NORMAL 

Event was fired as part of the normal encryption / decryption process.

E_SECURITY_CAUSE_ENCRYPT_SUCCESS 

An S/MIME encryption succeeded.

E_SECURITY_CAUSE_ENCRYPT_FAILURE_LIB_INIT 

An S/MIME encryption failed because the security library could not start.

E_SECURITY_CAUSE_ENCRYPT_FAILURE_BAD_PUBLIC_KEY 

An S/MIME encryption failed because of a bad certificate / public key.

E_SECURITY_CAUSE_ENCRYPT_FAILURE_INVALID_PARAMETER 

An S/MIME encryption failed because of an invalid parameter.

E_SECURITY_CAUSE_DECRYPT_SUCCESS 

An S/MIME decryption succeeded.

E_SECURITY_CAUSE_DECRYPT_FAILURE_DB_INIT 

An S/MIME decryption failed due to a failure to initialize the certificate database.

E_SECURITY_CAUSE_DECRYPT_FAILURE_BAD_DB_PASSWORD 

An S/MIME decryption failed due to an invalid certificate database password.

E_SECURITY_CAUSE_DECRYPT_FAILURE_INVALID_PARAMETER 

An S/MIME decryption failed due to an invalid parameter.

E_SECURITY_CAUSE_DECRYPT_BAD_SIGNATURE 

An S/MIME decryption operation aborted due to a bad signature.

E_SECURITY_CAUSE_DECRYPT_MISSING_SIGNATURE 

An S/MIME decryption operation aborted due to a missing signature.

E_SECURITY_CAUSE_DECRYPT_SIGNATURE_REJECTED 

An S/MIME decryption operation aborted because the signature was rejected.

E_SECURITY_CAUSE_TLS_SERVER_CERTIFICATE 
E_SECURITY_CAUSE_TLS_BAD_PASSWORD 
E_SECURITY_CAUSE_TLS_LIBRARY_FAILURE 
E_SECURITY_CAUSE_REMOTE_HOST_UNREACHABLE 
E_SECURITY_CAUSE_TLS_CONNECTION_FAILURE 
E_SECURITY_CAUSE_TLS_HANDSHAKE_FAILURE 
E_SECURITY_CAUSE_SIGNATURE_NOTIFY 

The SIGNATURE_NOTIFY event is fired when the user-agent receives a SIP message with signed SMIME as its content. The signer's certificate will be located in the info structure associated with this event. The application can choose to accept the signature, by returning 'true' in response to this message or can choose to reject the signature by returning 'false' in response to this message.

E_SECURITY_CAUSE_TLS_CERTIFICATE_REJECTED 

< The application has rejected the server's TLS certificate.