gwenhywfar  4.8.0beta
Typedefs | Functions
ssl_cert_descr.h File Reference
#include <gwenhywfar/db.h>
#include <gwenhywfar/misc.h>
#include <gwenhywfar/list2.h>
#include <gwenhywfar/gwentime.h>
#include <gwenhywfar/ssl_cert_flags.h>

Go to the source code of this file.

Typedefs

typedef struct GWEN_SSLCERTDESCR GWEN_SSLCERTDESCR
 

Functions

GWENHYWFAR_API void GWEN_SslCertDescr_Attach (GWEN_SSLCERTDESCR *st)
 
GWENHYWFAR_API GWEN_SSLCERTDESCRGWEN_SslCertDescr_dup (const GWEN_SSLCERTDESCR *st)
 
GWENHYWFAR_API void GWEN_SslCertDescr_free (GWEN_SSLCERTDESCR *st)
 
GWENHYWFAR_API GWEN_SSLCERTDESCRGWEN_SslCertDescr_fromDb (GWEN_DB_NODE *db)
 
GWENHYWFAR_API const char * GWEN_SslCertDescr_GetCommonName (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API const char * GWEN_SslCertDescr_GetCountryName (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API const char * GWEN_SslCertDescr_GetFingerPrint (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API const char * GWEN_SslCertDescr_GetIpAddress (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API int GWEN_SslCertDescr_GetIsError (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API const char * GWEN_SslCertDescr_GetLocalityName (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API const GWEN_TIMEGWEN_SslCertDescr_GetNotAfter (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API const GWEN_TIMEGWEN_SslCertDescr_GetNotBefore (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API const char * GWEN_SslCertDescr_GetOrganizationalUnitName (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API const char * GWEN_SslCertDescr_GetOrganizationName (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API const char * GWEN_SslCertDescr_GetPubKeyExponent (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API const char * GWEN_SslCertDescr_GetPubKeyModulus (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API const char * GWEN_SslCertDescr_GetStateOrProvinceName (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API uint32_t GWEN_SslCertDescr_GetStatusFlags (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API const char * GWEN_SslCertDescr_GetStatusText (const GWEN_SSLCERTDESCR *el)
 
GWENHYWFAR_API int GWEN_SslCertDescr_IsModified (const GWEN_SSLCERTDESCR *st)
 
GWENHYWFAR_API void GWEN_SslCertDescr_List2_freeAll (GWEN_SSLCERTDESCR_LIST2 *stl)
 
GWENHYWFAR_API
GWEN_SSLCERTDESCR_LIST * 
GWEN_SslCertDescr_List_dup (const GWEN_SSLCERTDESCR_LIST *stl)
 
GWENHYWFAR_API GWEN_SSLCERTDESCRGWEN_SslCertDescr_new (void)
 
GWENHYWFAR_API int GWEN_SslCertDescr_ReadDb (GWEN_SSLCERTDESCR *st, GWEN_DB_NODE *db)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetCommonName (GWEN_SSLCERTDESCR *el, const char *d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetCountryName (GWEN_SSLCERTDESCR *el, const char *d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetFingerPrint (GWEN_SSLCERTDESCR *el, const char *d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetIpAddress (GWEN_SSLCERTDESCR *el, const char *d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetIsError (GWEN_SSLCERTDESCR *el, int d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetLocalityName (GWEN_SSLCERTDESCR *el, const char *d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetModified (GWEN_SSLCERTDESCR *st, int i)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetNotAfter (GWEN_SSLCERTDESCR *el, const GWEN_TIME *d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetNotBefore (GWEN_SSLCERTDESCR *el, const GWEN_TIME *d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetOrganizationalUnitName (GWEN_SSLCERTDESCR *el, const char *d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetOrganizationName (GWEN_SSLCERTDESCR *el, const char *d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetPubKeyExponent (GWEN_SSLCERTDESCR *el, const char *d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetPubKeyModulus (GWEN_SSLCERTDESCR *el, const char *d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetStateOrProvinceName (GWEN_SSLCERTDESCR *el, const char *d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetStatusFlags (GWEN_SSLCERTDESCR *el, uint32_t d)
 
GWENHYWFAR_API void GWEN_SslCertDescr_SetStatusText (GWEN_SSLCERTDESCR *el, const char *d)
 
GWENHYWFAR_API int GWEN_SslCertDescr_toDb (const GWEN_SSLCERTDESCR *st, GWEN_DB_NODE *db)
 

Typedef Documentation

Definition at line 149 of file ssl_cert_descr.h.

Function Documentation

GWENHYWFAR_API void GWEN_SslCertDescr_Attach ( GWEN_SSLCERTDESCR st)

Increments the usage counter of the given object, so an additional free() is needed to destroy the object.

Definition at line 516 of file ssl_cert_descr.c.

GWENHYWFAR_API GWEN_SSLCERTDESCR* GWEN_SslCertDescr_dup ( const GWEN_SSLCERTDESCR st)

Creates and returns a deep copy of thegiven object.

Definition at line 74 of file ssl_cert_descr.c.

References GWEN_SslCertDescr_new(), and GWEN_Time_dup().

Referenced by GWEN_SslCertDescr_List_dup().

GWENHYWFAR_API void GWEN_SslCertDescr_free ( GWEN_SSLCERTDESCR st)

Destroys the given object.

Definition at line 36 of file ssl_cert_descr.c.

References GWEN_FREE_OBJECT, GWEN_LIST_FINI, and GWEN_Time_free().

Referenced by GWEN_SslCertDescr_List2__freeAll_cb(), and GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API GWEN_SSLCERTDESCR* GWEN_SslCertDescr_fromDb ( GWEN_DB_NODE db)

Creates an object from the data in the given GWEN_DB_NODE

Definition at line 201 of file ssl_cert_descr.c.

References GWEN_SslCertDescr_new(), and GWEN_SslCertDescr_ReadDb().

GWENHYWFAR_API const char* GWEN_SslCertDescr_GetCommonName ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_CommonName

Definition at line 234 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CheckCertBuiltIn().

GWENHYWFAR_API const char* GWEN_SslCertDescr_GetCountryName ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_CountryName

Definition at line 214 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CheckCertBuiltIn().

GWENHYWFAR_API const char* GWEN_SslCertDescr_GetFingerPrint ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_FingerPrint

Definition at line 394 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CGui_CheckCert(), and GWEN_Gui_CheckCertBuiltIn().

GWENHYWFAR_API const char* GWEN_SslCertDescr_GetIpAddress ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_IpAddress

Definition at line 374 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CheckCertBuiltIn().

GWENHYWFAR_API int GWEN_SslCertDescr_GetIsError ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_IsError

Definition at line 474 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CheckCertBuiltIn().

GWENHYWFAR_API const char* GWEN_SslCertDescr_GetLocalityName ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_LocalityName

Definition at line 294 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CheckCertBuiltIn().

GWENHYWFAR_API const GWEN_TIME* GWEN_SslCertDescr_GetNotAfter ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_NotAfter

Definition at line 354 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CheckCertBuiltIn().

GWENHYWFAR_API const GWEN_TIME* GWEN_SslCertDescr_GetNotBefore ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_NotBefore

Definition at line 334 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CheckCertBuiltIn().

GWENHYWFAR_API const char* GWEN_SslCertDescr_GetOrganizationalUnitName ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_OrganizationalUnitName

Definition at line 274 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CheckCertBuiltIn().

GWENHYWFAR_API const char* GWEN_SslCertDescr_GetOrganizationName ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_OrganizationName

Definition at line 254 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CheckCertBuiltIn().

GWENHYWFAR_API const char* GWEN_SslCertDescr_GetPubKeyExponent ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_PubKeyExponent

Definition at line 434 of file ssl_cert_descr.c.

GWENHYWFAR_API const char* GWEN_SslCertDescr_GetPubKeyModulus ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_PubKeyModulus

Definition at line 414 of file ssl_cert_descr.c.

GWENHYWFAR_API const char* GWEN_SslCertDescr_GetStateOrProvinceName ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_StateOrProvinceName

Definition at line 314 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CheckCertBuiltIn().

GWENHYWFAR_API uint32_t GWEN_SslCertDescr_GetStatusFlags ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_StatusFlags

Definition at line 489 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CGui_CheckCert().

GWENHYWFAR_API const char* GWEN_SslCertDescr_GetStatusText ( const GWEN_SSLCERTDESCR el)

Returns the property GWEN_SSLCERTDESCR_StatusText

Definition at line 454 of file ssl_cert_descr.c.

Referenced by GWEN_Gui_CGui_CheckCert(), and GWEN_Gui_CheckCertBuiltIn().

GWENHYWFAR_API int GWEN_SslCertDescr_IsModified ( const GWEN_SSLCERTDESCR st)

Returns 0 if this object has not been modified, !=0 otherwise

Definition at line 504 of file ssl_cert_descr.c.

GWENHYWFAR_API void GWEN_SslCertDescr_List2_freeAll ( GWEN_SSLCERTDESCR_LIST2 *  stl)

Destroys all objects stored in the given LIST2 and the list itself

Definition at line 526 of file ssl_cert_descr.c.

References GWEN_SslCertDescr_List2__freeAll_cb().

GWENHYWFAR_API GWEN_SSLCERTDESCR_LIST* GWEN_SslCertDescr_List_dup ( const GWEN_SSLCERTDESCR_LIST *  stl)

Definition at line 534 of file ssl_cert_descr.c.

References GWEN_SslCertDescr_dup().

GWENHYWFAR_API GWEN_SSLCERTDESCR* GWEN_SslCertDescr_new ( void  )

Creates a new object.

Definition at line 26 of file ssl_cert_descr.c.

References GWEN_LIST_INIT, and GWEN_NEW_OBJECT.

Referenced by GWEN_SslCertDescr_dup(), GWEN_SslCertDescr_fromDb(), and GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API int GWEN_SslCertDescr_ReadDb ( GWEN_SSLCERTDESCR st,
GWEN_DB_NODE db 
)
GWENHYWFAR_API void GWEN_SslCertDescr_SetCommonName ( GWEN_SSLCERTDESCR el,
const char *  d 
)

Set the property GWEN_SSLCERTDESCR_CommonName

Definition at line 240 of file ssl_cert_descr.c.

Referenced by GWEN_SslCertDescr_ReadDb(), and GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API void GWEN_SslCertDescr_SetCountryName ( GWEN_SSLCERTDESCR el,
const char *  d 
)

Set the property GWEN_SSLCERTDESCR_CountryName

Definition at line 220 of file ssl_cert_descr.c.

Referenced by GWEN_SslCertDescr_ReadDb(), and GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API void GWEN_SslCertDescr_SetFingerPrint ( GWEN_SSLCERTDESCR el,
const char *  d 
)

Set the property GWEN_SSLCERTDESCR_FingerPrint

Definition at line 400 of file ssl_cert_descr.c.

Referenced by GWEN_SslCertDescr_ReadDb(), and GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API void GWEN_SslCertDescr_SetIpAddress ( GWEN_SSLCERTDESCR el,
const char *  d 
)

Set the property GWEN_SSLCERTDESCR_IpAddress

Definition at line 380 of file ssl_cert_descr.c.

Referenced by GWEN_SslCertDescr_ReadDb().

GWENHYWFAR_API void GWEN_SslCertDescr_SetIsError ( GWEN_SSLCERTDESCR el,
int  d 
)

Set the property GWEN_SSLCERTDESCR_IsError

Definition at line 480 of file ssl_cert_descr.c.

Referenced by GWEN_SslCertDescr_ReadDb(), and GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API void GWEN_SslCertDescr_SetLocalityName ( GWEN_SSLCERTDESCR el,
const char *  d 
)

Set the property GWEN_SSLCERTDESCR_LocalityName

Definition at line 300 of file ssl_cert_descr.c.

Referenced by GWEN_SslCertDescr_ReadDb(), and GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API void GWEN_SslCertDescr_SetModified ( GWEN_SSLCERTDESCR st,
int  i 
)

Sets the modified state of the given object

Definition at line 510 of file ssl_cert_descr.c.

GWENHYWFAR_API void GWEN_SslCertDescr_SetNotAfter ( GWEN_SSLCERTDESCR el,
const GWEN_TIME d 
)

Set the property GWEN_SSLCERTDESCR_NotAfter

Definition at line 360 of file ssl_cert_descr.c.

References GWEN_Time_dup(), and GWEN_Time_free().

Referenced by GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API void GWEN_SslCertDescr_SetNotBefore ( GWEN_SSLCERTDESCR el,
const GWEN_TIME d 
)

Set the property GWEN_SSLCERTDESCR_NotBefore

Definition at line 340 of file ssl_cert_descr.c.

References GWEN_Time_dup(), and GWEN_Time_free().

Referenced by GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API void GWEN_SslCertDescr_SetOrganizationalUnitName ( GWEN_SSLCERTDESCR el,
const char *  d 
)
GWENHYWFAR_API void GWEN_SslCertDescr_SetOrganizationName ( GWEN_SSLCERTDESCR el,
const char *  d 
)
GWENHYWFAR_API void GWEN_SslCertDescr_SetPubKeyExponent ( GWEN_SSLCERTDESCR el,
const char *  d 
)

Set the property GWEN_SSLCERTDESCR_PubKeyExponent

Definition at line 440 of file ssl_cert_descr.c.

Referenced by GWEN_SslCertDescr_ReadDb(), and GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API void GWEN_SslCertDescr_SetPubKeyModulus ( GWEN_SSLCERTDESCR el,
const char *  d 
)

Set the property GWEN_SSLCERTDESCR_PubKeyModulus

Definition at line 420 of file ssl_cert_descr.c.

Referenced by GWEN_SslCertDescr_ReadDb(), and GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API void GWEN_SslCertDescr_SetStateOrProvinceName ( GWEN_SSLCERTDESCR el,
const char *  d 
)
GWENHYWFAR_API void GWEN_SslCertDescr_SetStatusFlags ( GWEN_SSLCERTDESCR el,
uint32_t  d 
)

Set the property GWEN_SSLCERTDESCR_StatusFlags

Definition at line 495 of file ssl_cert_descr.c.

Referenced by GWEN_SslCertDescr_ReadDb(), and GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API void GWEN_SslCertDescr_SetStatusText ( GWEN_SSLCERTDESCR el,
const char *  d 
)

Set the property GWEN_SSLCERTDESCR_StatusText

Definition at line 460 of file ssl_cert_descr.c.

Referenced by GWEN_SslCertDescr_ReadDb(), and GWEN_SyncIo_Tls_GetPeerCert().

GWENHYWFAR_API int GWEN_SslCertDescr_toDb ( const GWEN_SSLCERTDESCR st,
GWEN_DB_NODE db 
)

Stores an object in the given GWEN_DB_NODE

Definition at line 111 of file ssl_cert_descr.c.

References GWEN_DB_FLAGS_DEFAULT, GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_GetGroup(), GWEN_DB_SetCharValue(), GWEN_DB_SetIntValue(), and GWEN_Time_toDb().

Referenced by GWEN_SyncIo_Tls_GetPeerCert().