Module: Miscellaneous
Definition in file ResourceUtils.h.
#include "pkif.h"
#include "wx/wxprec.h"
#include "wx/wx.h"
Go to the source code of this file.
Functions | |
CPKIFCRLPtr | GetCrl (wxString &filename) |
CPKIFCertificatePtr | GetCert (wxString &filename) |
bool | ValidateOID (const wxString &attrVal) |
bool | ValidateOIDComponents (const wxString &attrVal) |
const wxString & | GetBufferAsAscii (const CPKIFBufferPtr &in, wxString &out) |
CPKIFBufferPtr | GetBufferFromAscii (wxString &in) |
CPKIFCredentialPtr | GetCredential (IPKIFMediatorPtr &m, wxString &wxCredBuf) |
void | StringSplit (const std::string &text, std::string &separators, std::vector< std::string > &words) |
const wxString & GetBufferAsAscii | ( | const CPKIFBufferPtr & | in, | |
wxString & | out | |||
) |
Interface: External
This function converts buffer to ASCII string
in | [in]Buffer to be converted |
out | [in]Converted string |
Definition at line 2397 of file PKIFMediatorSerializer.cpp.
References btoa().
Referenced by SaveRevocationStatusComponents().
CPKIFBufferPtr GetBufferFromAscii | ( | wxString & | in | ) |
Interface: External
This function converts ASCII string to a buffer
in | [in]String to be converted |
Definition at line 2418 of file PKIFMediatorSerializer.cpp.
References atob(), and wxASCIIHelper::to_chars().
Referenced by LoadRevocationStatusComponents().
CPKIFCertificatePtr GetCert | ( | wxString & | filename | ) |
Interface: Subsystem
This function reads a certificate from a file and returns a CPKIFCertificate object
filename | [in] Filename |
Definition at line 24 of file ResourceUtils.cpp.
CPKIFCredentialPtr GetCredential | ( | IPKIFMediatorPtr & | m, | |
wxString & | wxCredBuf | |||
) |
CPKIFCRLPtr GetCrl | ( | wxString & | filename | ) |
Interface: Subsystem
This function reads a crl from a file and returns a CPKIFCRL object
filename | [in] Filename |
Definition at line 58 of file ResourceUtils.cpp.
void StringSplit | ( | const string & | text, | |
string & | separators, | |||
vector< string > & | words | |||
) |
Interface: Subsystem
This function splits a string based on a specified separator
text | [in] String to be split |
separators | [in] separator |
words | [out] Vector of split strings |
Definition at line 92 of file ResourceUtils.cpp.
Referenced by CPKIFGeneralCertificateDetailsPanel::OnInitDialog(), CPKIFGeneralCRLDetailsPanel::PopulateListExtensions(), and ValidateOID().
bool ValidateOID | ( | const wxString & | attrVal | ) |
Interface: Subsystem
This function validates an OID
Definition at line 118 of file ResourceUtils.cpp.
References StringSplit().
bool ValidateOIDComponents | ( | const wxString & | attrVal | ) |
Interface: Subsystem
This function validates an OID
Definition at line 140 of file ResourceUtils.cpp.