libkleo
dn.cpp File Reference
#include "dn.h"
#include "oidmap.h"
#include "libkleo/ui/dnattributeorderconfigwidget.h"
#include <kconfig.h>
#include <klocale.h>
#include <QStringList>
#include <iostream>
#include <iterator>
#include <algorithm>
#include <map>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <kglobal.h>
#include <kconfiggroup.h>
Include dependency graph for dn.cpp:

Go to the source code of this file.
Defines | |
| #define | digitp(p) (*(p) >= '0' && *(p) <= '9') |
| #define | hexdigitp(a) |
| #define | MAKE_PAIR(x, y) std::pair<const char*,const char*>( x, y ) |
| #define | xtoi_1(p) |
| #define | xtoi_2(p) ((xtoi_1(p) * 16) + xtoi_1((p)+1)) |
Functions | |
| static QString | dn_escape (const QString &s) |
| static QVector < Kleo::DN::Attribute > | parse_dn (const QString &dn) |
| static Kleo::DN::Attribute::List | parse_dn (const unsigned char *string) |
| static const unsigned char * | parse_dn_part (DnPair *array, const unsigned char *string) |
| static Kleo::DN::Attribute::List | reorder_dn (const Kleo::DN::Attribute::List &dn) |
| static QString | serialise (const QVector< Kleo::DN::Attribute > &dn) |
| static char * | trim_trailing_spaces (char *string) |
Variables | |
| std::pair< const char *, const char * > | attributeLabels [] |
| static const char * | defaultOrder [] |
| static QVector < Kleo::DN::Attribute > | empty |
| static const unsigned int | numAttributeLabels = sizeof attributeLabels / sizeof *attributeLabels |
Define Documentation
| #define hexdigitp | ( | a | ) |
| #define MAKE_PAIR | ( | x, | |||
| y | ) | std::pair<const char*,const char*>( x, y ) |
| #define xtoi_1 | ( | p | ) |
Function Documentation
| static Kleo::DN::Attribute::List parse_dn | ( | const unsigned char * | string | ) | [static] |
| static const unsigned char* parse_dn_part | ( | DnPair * | array, | |
| const unsigned char * | string | |||
| ) | [static] |
| static Kleo::DN::Attribute::List reorder_dn | ( | const Kleo::DN::Attribute::List & | dn | ) | [static] |
Variable Documentation
| std::pair<const char*,const char*> attributeLabels[] |
Initial value:
{
#define MAKE_PAIR(x,y)
MAKE_PAIR( "CN", I18N_NOOP("Common name") ),
MAKE_PAIR( "SN", I18N_NOOP("Surname") ),
MAKE_PAIR( "GN", I18N_NOOP("Given name") ),
MAKE_PAIR( "L", I18N_NOOP("Location") ),
MAKE_PAIR( "T", I18N_NOOP("Title") ),
MAKE_PAIR( "OU", I18N_NOOP("Organizational unit") ),
MAKE_PAIR( "O", I18N_NOOP("Organization") ),
MAKE_PAIR( "PC", I18N_NOOP("Postal code") ),
MAKE_PAIR( "C", I18N_NOOP("Country code") ),
MAKE_PAIR( "SP", I18N_NOOP("State or province") ),
MAKE_PAIR( "DC", I18N_NOOP("Domain component") ),
MAKE_PAIR( "BC", I18N_NOOP("Business category") ),
MAKE_PAIR( "EMAIL", I18N_NOOP("Email address") ),
MAKE_PAIR( "MAIL", I18N_NOOP("Mail address") ),
MAKE_PAIR( "MOBILE", I18N_NOOP("Mobile phone number") ),
MAKE_PAIR( "TEL", I18N_NOOP("Telephone number") ),
MAKE_PAIR( "FAX", I18N_NOOP("Fax number") ),
MAKE_PAIR( "STREET", I18N_NOOP("Street address") ),
MAKE_PAIR( "UID", I18N_NOOP("Unique ID") )
}
const char* defaultOrder[] [static] |
const unsigned int numAttributeLabels = sizeof attributeLabels / sizeof *attributeLabels [static] |
KDE 4.2 API Reference