gwenhywfar  4.99.15beta
ssl_cert_descr.c
Go to the documentation of this file.
1 /* This file is auto-generated from "ssl_cert_descr.xml" by the typemaker
2  tool of Gwenhywfar.
3  Do not edit this file -- all changes will be lost! */
4 #ifdef HAVE_CONFIG_H
5 # include "config.h"
6 #endif
7 
8 #include "ssl_cert_descr_p.h"
9 #include <gwenhywfar/misc.h>
10 #include <gwenhywfar/db.h>
11 #include <gwenhywfar/debug.h>
12 #include <assert.h>
13 #include <stdlib.h>
14 #include <strings.h>
15 
16 #include <gwenhywfar/gwentime.h>
17 #include <gwenhywfar/ssl_cert_flags.h>
18 
19 
20 GWEN_LIST_FUNCTIONS(GWEN_SSLCERTDESCR, GWEN_SslCertDescr)
21 GWEN_LIST2_FUNCTIONS(GWEN_SSLCERTDESCR, GWEN_SslCertDescr)
22 
23 
24 
25 
27 {
29 
31  st->_usage=1;
33  return st;
34 }
35 
36 
38 {
39  if (st) {
40  assert(st->_usage);
41  if (--(st->_usage)==0) {
42  if (st->countryName)
43  free(st->countryName);
44  if (st->commonName)
45  free(st->commonName);
46  if (st->organizationName)
47  free(st->organizationName);
48  if (st->organizationalUnitName)
49  free(st->organizationalUnitName);
50  if (st->localityName)
51  free(st->localityName);
52  if (st->stateOrProvinceName)
53  free(st->stateOrProvinceName);
54  if (st->notBefore)
55  GWEN_Time_free(st->notBefore);
56  if (st->notAfter)
57  GWEN_Time_free(st->notAfter);
58  if (st->ipAddress)
59  free(st->ipAddress);
60  if (st->fingerPrint)
61  free(st->fingerPrint);
62  if (st->fingerPrintSha1)
63  free(st->fingerPrintSha1);
64  if (st->fingerPrintSha512)
65  free(st->fingerPrintSha512);
66  if (st->pubKeyModulus)
67  free(st->pubKeyModulus);
68  if (st->pubKeyExponent)
69  free(st->pubKeyExponent);
70  if (st->statusText)
71  free(st->statusText);
73  GWEN_FREE_OBJECT(st);
74  }
75  }
76 
77 }
78 
79 
81 {
83 
84  assert(d);
86  if (d->countryName)
87  st->countryName=strdup(d->countryName);
88  if (d->commonName)
89  st->commonName=strdup(d->commonName);
90  if (d->organizationName)
91  st->organizationName=strdup(d->organizationName);
92  if (d->organizationalUnitName)
93  st->organizationalUnitName=strdup(d->organizationalUnitName);
94  if (d->localityName)
95  st->localityName=strdup(d->localityName);
96  if (d->stateOrProvinceName)
97  st->stateOrProvinceName=strdup(d->stateOrProvinceName);
98  if (d->notBefore)
99  st->notBefore=GWEN_Time_dup(d->notBefore);
100  if (d->notAfter)
101  st->notAfter=GWEN_Time_dup(d->notAfter);
102  if (d->ipAddress)
103  st->ipAddress=strdup(d->ipAddress);
104  if (d->fingerPrint)
105  st->fingerPrint=strdup(d->fingerPrint);
106  if (d->fingerPrintSha1)
107  st->fingerPrintSha1=strdup(d->fingerPrintSha1);
108  if (d->fingerPrintSha512)
109  st->fingerPrintSha512=strdup(d->fingerPrintSha512);
110  if (d->pubKeyModulus)
111  st->pubKeyModulus=strdup(d->pubKeyModulus);
112  if (d->pubKeyExponent)
113  st->pubKeyExponent=strdup(d->pubKeyExponent);
114  if (d->statusText)
115  st->statusText=strdup(d->statusText);
116  st->isError=d->isError;
117  st->statusFlags=d->statusFlags;
118  return st;
119 }
120 
121 
123 {
124  assert(st);
125  assert(db);
126  if (st->countryName)
127  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "countryName", st->countryName))
128  return -1;
129  if (st->commonName)
130  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "commonName", st->commonName))
131  return -1;
132  if (st->organizationName)
133  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "organizationName", st->organizationName))
134  return -1;
135  if (st->organizationalUnitName)
136  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "organizationalUnitName", st->organizationalUnitName))
137  return -1;
138  if (st->localityName)
139  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "localityName", st->localityName))
140  return -1;
141  if (st->stateOrProvinceName)
142  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "stateOrProvinceName", st->stateOrProvinceName))
143  return -1;
144  if (st->notBefore)
145  if (GWEN_Time_toDb(st->notBefore, GWEN_DB_GetGroup(db, GWEN_DB_FLAGS_DEFAULT, "notBefore")))
146  return -1;
147  if (st->notAfter)
148  if (GWEN_Time_toDb(st->notAfter, GWEN_DB_GetGroup(db, GWEN_DB_FLAGS_DEFAULT, "notAfter")))
149  return -1;
150  if (st->ipAddress)
151  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "ipAddress", st->ipAddress))
152  return -1;
153  if (st->fingerPrint)
154  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "fingerPrint", st->fingerPrint))
155  return -1;
156  if (st->fingerPrintSha1)
157  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "fingerPrintSha1", st->fingerPrintSha1))
158  return -1;
159  if (st->fingerPrintSha512)
160  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "fingerPrintSha512", st->fingerPrintSha512))
161  return -1;
162  if (st->pubKeyModulus)
163  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "pubKeyModulus", st->pubKeyModulus))
164  return -1;
165  if (st->pubKeyExponent)
166  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "pubKeyExponent", st->pubKeyExponent))
167  return -1;
168  if (st->statusText)
169  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "statusText", st->statusText))
170  return -1;
171  if (GWEN_DB_SetIntValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "isError", st->isError))
172  return -1;
173  if (GWEN_DB_SetIntValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "statusFlags", st->statusFlags))
174  return -1;
175  return 0;
176 }
177 
178 
180 {
181  assert(st);
182  assert(db);
183  GWEN_SslCertDescr_SetCountryName(st, GWEN_DB_GetCharValue(db, "countryName", 0, 0));
184  GWEN_SslCertDescr_SetCommonName(st, GWEN_DB_GetCharValue(db, "commonName", 0, 0));
185  GWEN_SslCertDescr_SetOrganizationName(st, GWEN_DB_GetCharValue(db, "organizationName", 0, 0));
186  GWEN_SslCertDescr_SetOrganizationalUnitName(st, GWEN_DB_GetCharValue(db, "organizationalUnitName", 0, 0));
187  GWEN_SslCertDescr_SetLocalityName(st, GWEN_DB_GetCharValue(db, "localityName", 0, 0));
188  GWEN_SslCertDescr_SetStateOrProvinceName(st, GWEN_DB_GetCharValue(db, "stateOrProvinceName", 0, 0));
189  if (1) { /* for local vars */
190  GWEN_DB_NODE *dbT;
191 
192  dbT=GWEN_DB_GetGroup(db, GWEN_PATH_FLAGS_NAMEMUSTEXIST, "notBefore");
193  if (dbT) {
194  if (st->notBefore)
195  GWEN_Time_free(st->notBefore);
196  st->notBefore=GWEN_Time_fromDb(dbT);
197  }
198  }
199  if (1) { /* for local vars */
200  GWEN_DB_NODE *dbT;
201 
202  dbT=GWEN_DB_GetGroup(db, GWEN_PATH_FLAGS_NAMEMUSTEXIST, "notAfter");
203  if (dbT) {
204  if (st->notAfter)
205  GWEN_Time_free(st->notAfter);
206  st->notAfter=GWEN_Time_fromDb(dbT);
207  }
208  }
209  GWEN_SslCertDescr_SetIpAddress(st, GWEN_DB_GetCharValue(db, "ipAddress", 0, 0));
210  GWEN_SslCertDescr_SetFingerPrint(st, GWEN_DB_GetCharValue(db, "fingerPrint", 0, 0));
211  GWEN_SslCertDescr_SetFingerPrintSha1(st, GWEN_DB_GetCharValue(db, "fingerPrintSha1", 0, 0));
212  GWEN_SslCertDescr_SetFingerPrintSha512(st, GWEN_DB_GetCharValue(db, "fingerPrintSha512", 0, 0));
213  GWEN_SslCertDescr_SetPubKeyModulus(st, GWEN_DB_GetCharValue(db, "pubKeyModulus", 0, 0));
214  GWEN_SslCertDescr_SetPubKeyExponent(st, GWEN_DB_GetCharValue(db, "pubKeyExponent", 0, 0));
215  GWEN_SslCertDescr_SetStatusText(st, GWEN_DB_GetCharValue(db, "statusText", 0, 0));
216  GWEN_SslCertDescr_SetIsError(st, GWEN_DB_GetIntValue(db, "isError", 0, 0));
217  GWEN_SslCertDescr_SetStatusFlags(st, GWEN_DB_GetIntValue(db, "statusFlags", 0, 0));
218  return 0;
219 }
220 
221 
223 {
224  GWEN_SSLCERTDESCR *st;
225 
226  assert(db);
228  GWEN_SslCertDescr_ReadDb(st, db);
229  st->_modified=0;
230  return st;
231 }
232 
233 
234 
235 
237 {
238  assert(st);
239  return st->countryName;
240 }
241 
242 
244 {
245  assert(st);
246  if (st->countryName)
247  free(st->countryName);
248  if (d && *d)
249  st->countryName=strdup(d);
250  else
251  st->countryName=0;
252  st->_modified=1;
253 }
254 
255 
256 
257 
259 {
260  assert(st);
261  return st->commonName;
262 }
263 
264 
266 {
267  assert(st);
268  if (st->commonName)
269  free(st->commonName);
270  if (d && *d)
271  st->commonName=strdup(d);
272  else
273  st->commonName=0;
274  st->_modified=1;
275 }
276 
277 
278 
279 
281 {
282  assert(st);
283  return st->organizationName;
284 }
285 
286 
288 {
289  assert(st);
290  if (st->organizationName)
291  free(st->organizationName);
292  if (d && *d)
293  st->organizationName=strdup(d);
294  else
295  st->organizationName=0;
296  st->_modified=1;
297 }
298 
299 
300 
301 
303 {
304  assert(st);
305  return st->organizationalUnitName;
306 }
307 
308 
310 {
311  assert(st);
312  if (st->organizationalUnitName)
313  free(st->organizationalUnitName);
314  if (d && *d)
315  st->organizationalUnitName=strdup(d);
316  else
317  st->organizationalUnitName=0;
318  st->_modified=1;
319 }
320 
321 
322 
323 
325 {
326  assert(st);
327  return st->localityName;
328 }
329 
330 
332 {
333  assert(st);
334  if (st->localityName)
335  free(st->localityName);
336  if (d && *d)
337  st->localityName=strdup(d);
338  else
339  st->localityName=0;
340  st->_modified=1;
341 }
342 
343 
344 
345 
347 {
348  assert(st);
349  return st->stateOrProvinceName;
350 }
351 
352 
354 {
355  assert(st);
356  if (st->stateOrProvinceName)
357  free(st->stateOrProvinceName);
358  if (d && *d)
359  st->stateOrProvinceName=strdup(d);
360  else
361  st->stateOrProvinceName=0;
362  st->_modified=1;
363 }
364 
365 
366 
367 
369 {
370  assert(st);
371  return st->notBefore;
372 }
373 
374 
376 {
377  assert(st);
378  if (st->notBefore)
379  GWEN_Time_free(st->notBefore);
380  if (d)
381  st->notBefore=GWEN_Time_dup(d);
382  else
383  st->notBefore=0;
384  st->_modified=1;
385 }
386 
387 
388 
389 
391 {
392  assert(st);
393  return st->notAfter;
394 }
395 
396 
398 {
399  assert(st);
400  if (st->notAfter)
401  GWEN_Time_free(st->notAfter);
402  if (d)
403  st->notAfter=GWEN_Time_dup(d);
404  else
405  st->notAfter=0;
406  st->_modified=1;
407 }
408 
409 
410 
411 
413 {
414  assert(st);
415  return st->ipAddress;
416 }
417 
418 
420 {
421  assert(st);
422  if (st->ipAddress)
423  free(st->ipAddress);
424  if (d && *d)
425  st->ipAddress=strdup(d);
426  else
427  st->ipAddress=0;
428  st->_modified=1;
429 }
430 
431 
432 
433 
435 {
436  assert(st);
437  return st->fingerPrint;
438 }
439 
440 
442 {
443  assert(st);
444  if (st->fingerPrint)
445  free(st->fingerPrint);
446  if (d && *d)
447  st->fingerPrint=strdup(d);
448  else
449  st->fingerPrint=0;
450  st->_modified=1;
451 }
452 
453 
454 
455 
457 {
458  assert(st);
459  return st->fingerPrintSha1;
460 }
461 
462 
464 {
465  assert(st);
466  if (st->fingerPrintSha1)
467  free(st->fingerPrintSha1);
468  if (d && *d)
469  st->fingerPrintSha1=strdup(d);
470  else
471  st->fingerPrintSha1=0;
472  st->_modified=1;
473 }
474 
475 
476 
477 
479 {
480  assert(st);
481  return st->fingerPrintSha512;
482 }
483 
484 
486 {
487  assert(st);
488  if (st->fingerPrintSha512)
489  free(st->fingerPrintSha512);
490  if (d && *d)
491  st->fingerPrintSha512=strdup(d);
492  else
493  st->fingerPrintSha512=0;
494  st->_modified=1;
495 }
496 
497 
498 
499 
501 {
502  assert(st);
503  return st->pubKeyModulus;
504 }
505 
506 
508 {
509  assert(st);
510  if (st->pubKeyModulus)
511  free(st->pubKeyModulus);
512  if (d && *d)
513  st->pubKeyModulus=strdup(d);
514  else
515  st->pubKeyModulus=0;
516  st->_modified=1;
517 }
518 
519 
520 
521 
523 {
524  assert(st);
525  return st->pubKeyExponent;
526 }
527 
528 
530 {
531  assert(st);
532  if (st->pubKeyExponent)
533  free(st->pubKeyExponent);
534  if (d && *d)
535  st->pubKeyExponent=strdup(d);
536  else
537  st->pubKeyExponent=0;
538  st->_modified=1;
539 }
540 
541 
542 
543 
545 {
546  assert(st);
547  return st->statusText;
548 }
549 
550 
552 {
553  assert(st);
554  if (st->statusText)
555  free(st->statusText);
556  if (d && *d)
557  st->statusText=strdup(d);
558  else
559  st->statusText=0;
560  st->_modified=1;
561 }
562 
563 
564 
565 
567 {
568  assert(st);
569  return st->isError;
570 }
571 
572 
574 {
575  assert(st);
576  st->isError=d;
577  st->_modified=1;
578 }
579 
580 
581 
582 
584 {
585  assert(st);
586  return st->statusFlags;
587 }
588 
589 
591 {
592  assert(st);
593  st->statusFlags=d;
594  st->_modified=1;
595 }
596 
597 
598 
599 
601 {
602  assert(st);
603  return st->_modified;
604 }
605 
606 
608 {
609  assert(st);
610  st->_modified=i;
611 }
612 
613 
615 {
616  assert(st);
617  st->_usage++;
618 }
620 {
622  return 0;
623 }
624 
625 
627 {
628  if (stl) {
631  }
632 }
633 
634 
636 {
637  if (stl) {
640 
643  while (e) {
644  GWEN_SSLCERTDESCR *ne;
645 
646  ne=GWEN_SslCertDescr_dup(e);
647  assert(ne);
650  } /* while (e) */
651  return nl;
652  }
653  else
654  return 0;
655 }
656 
657 
658 
659 
const char * GWEN_SslCertDescr_GetFingerPrintSha1(const GWEN_SSLCERTDESCR *st)
void GWEN_SslCertDescr_SetStateOrProvinceName(GWEN_SSLCERTDESCR *st, const char *d)
struct GWEN_TIME GWEN_TIME
Definition: gwentime.h:43
struct GWEN_SSLCERTDESCR GWEN_SSLCERTDESCR
GWEN_SSLCERTDESCR_LIST * GWEN_SslCertDescr_List_dup(const GWEN_SSLCERTDESCR_LIST *stl)
#define GWEN_DB_FLAGS_OVERWRITE_VARS
Definition: db.h:121
struct GWEN_DB_NODE GWEN_DB_NODE
Definition: db.h:228
GWEN_SSLCERTDESCR * GWEN_SslCertDescr_fromDb(GWEN_DB_NODE *db)
const char * GWEN_SslCertDescr_GetOrganizationName(const GWEN_SSLCERTDESCR *st)
GWENHYWFAR_API GWEN_TIME * GWEN_Time_dup(const GWEN_TIME *t)
Definition: gwentime_all.c:437
void GWEN_SslCertDescr_List2_free(GWEN_SSLCERTDESCR_LIST2 *l)
#define GWEN_FREE_OBJECT(varname)
Definition: memory.h:92
void GWEN_SslCertDescr_SetOrganizationName(GWEN_SSLCERTDESCR *st, const char *d)
void GWEN_SslCertDescr_List2_freeAll(GWEN_SSLCERTDESCR_LIST2 *stl)
GWEN_SSLCERTDESCR * GWEN_SslCertDescr_dup(const GWEN_SSLCERTDESCR *d)
const char * GWEN_SslCertDescr_GetFingerPrint(const GWEN_SSLCERTDESCR *st)
void GWEN_SslCertDescr_SetPubKeyModulus(GWEN_SSLCERTDESCR *st, const char *d)
GWENHYWFAR_API GWEN_TIME * GWEN_Time_fromDb(GWEN_DB_NODE *db)
Definition: gwentime_all.c:162
void GWEN_SslCertDescr_List_Add(GWEN_SSLCERTDESCR *element, GWEN_SSLCERTDESCR_LIST *list)
struct GWEN_SSLCERTDESCR_LIST2 GWEN_SSLCERTDESCR_LIST2
Definition: listdoc.h:6931
const GWEN_TIME * GWEN_SslCertDescr_GetNotBefore(const GWEN_SSLCERTDESCR *st)
const char * GWEN_SslCertDescr_GetStatusText(const GWEN_SSLCERTDESCR *st)
int GWEN_SslCertDescr_ReadDb(GWEN_SSLCERTDESCR *st, GWEN_DB_NODE *db)
GWENHYWFAR_API int GWEN_Time_toDb(const GWEN_TIME *t, GWEN_DB_NODE *db)
Definition: gwentime_all.c:121
const char * GWEN_SslCertDescr_GetOrganizationalUnitName(const GWEN_SSLCERTDESCR *st)
void GWEN_SslCertDescr_SetLocalityName(GWEN_SSLCERTDESCR *st, const char *d)
GWEN_SSLCERTDESCR * GWEN_SslCertDescr_List_Next(const GWEN_SSLCERTDESCR *element)
#define GWEN_NEW_OBJECT(typ, varname)
Definition: memory.h:86
void GWEN_SslCertDescr_SetFingerPrintSha512(GWEN_SSLCERTDESCR *st, const char *d)
void GWEN_SslCertDescr_SetIsError(GWEN_SSLCERTDESCR *st, int d)
void GWEN_SslCertDescr_Attach(GWEN_SSLCERTDESCR *st)
uint32_t GWEN_SslCertDescr_GetStatusFlags(const GWEN_SSLCERTDESCR *st)
void GWEN_SslCertDescr_SetPubKeyExponent(GWEN_SSLCERTDESCR *st, const char *d)
void GWEN_SslCertDescr_SetCountryName(GWEN_SSLCERTDESCR *st, const char *d)
const char * GWEN_DB_GetCharValue(GWEN_DB_NODE *n, const char *path, int idx, const char *defVal)
Definition: db.c:958
const char * GWEN_SslCertDescr_GetPubKeyExponent(const GWEN_SSLCERTDESCR *st)
void GWEN_SslCertDescr_SetOrganizationalUnitName(GWEN_SSLCERTDESCR *st, const char *d)
GWEN_DB_NODE * GWEN_DB_GetGroup(GWEN_DB_NODE *n, uint32_t flags, const char *path)
Definition: db.c:1368
GWEN_SSLCERTDESCR * GWEN_SslCertDescr_List_First(const GWEN_SSLCERTDESCR_LIST *l)
const char * GWEN_SslCertDescr_GetCountryName(const GWEN_SSLCERTDESCR *st)
GWENHYWFAR_API void GWEN_Time_free(GWEN_TIME *t)
Definition: gwentime_all.c:450
GWEN_LIST2_FUNCTIONS(TYPEMAKER2_TYPE, Typemaker2_Type)
void GWEN_SslCertDescr_SetIpAddress(GWEN_SSLCERTDESCR *st, const char *d)
int GWEN_SslCertDescr_GetIsError(const GWEN_SSLCERTDESCR *st)
const char * GWEN_SslCertDescr_GetCommonName(const GWEN_SSLCERTDESCR *st)
int GWEN_SslCertDescr_toDb(const GWEN_SSLCERTDESCR *st, GWEN_DB_NODE *db)
void GWEN_SslCertDescr_SetNotAfter(GWEN_SSLCERTDESCR *st, const GWEN_TIME *d)
int GWEN_DB_SetCharValue(GWEN_DB_NODE *n, uint32_t flags, const char *path, const char *val)
Definition: db.c:984
GWEN_SSLCERTDESCR * GWEN_SslCertDescr_List2_ForEach(GWEN_SSLCERTDESCR_LIST2 *list, GWEN_SSLCERTDESCR_LIST2_FOREACH func, void *user_data)
void GWEN_SslCertDescr_SetStatusText(GWEN_SSLCERTDESCR *st, const char *d)
GWEN_SSLCERTDESCR * GWEN_SslCertDescr_List2__freeAll_cb(GWEN_SSLCERTDESCR *st, void *user_data)
#define GWEN_LIST_INIT(t, element)
Definition: list1.h:465
const char * GWEN_SslCertDescr_GetIpAddress(const GWEN_SSLCERTDESCR *st)
int GWEN_DB_GetIntValue(GWEN_DB_NODE *n, const char *path, int idx, int defVal)
Definition: db.c:1150
const char * GWEN_SslCertDescr_GetFingerPrintSha512(const GWEN_SSLCERTDESCR *st)
void GWEN_SslCertDescr_SetNotBefore(GWEN_SSLCERTDESCR *st, const GWEN_TIME *d)
void GWEN_SslCertDescr_SetModified(GWEN_SSLCERTDESCR *st, int i)
int GWEN_DB_SetIntValue(GWEN_DB_NODE *n, uint32_t flags, const char *path, int val)
Definition: db.c:1189
#define GWEN_LIST_FUNCTIONS(t, pr)
Definition: list1.h:366
const GWEN_TIME * GWEN_SslCertDescr_GetNotAfter(const GWEN_SSLCERTDESCR *st)
void GWEN_SslCertDescr_SetFingerPrint(GWEN_SSLCERTDESCR *st, const char *d)
#define GWEN_PATH_FLAGS_NAMEMUSTEXIST
Definition: path.h:84
int GWEN_SslCertDescr_IsModified(const GWEN_SSLCERTDESCR *st)
void GWEN_SslCertDescr_free(GWEN_SSLCERTDESCR *st)
#define GWEN_LIST_FINI(t, element)
Definition: list1.h:474
GWEN_SSLCERTDESCR_LIST * GWEN_SslCertDescr_List_new()
const char * GWEN_SslCertDescr_GetLocalityName(const GWEN_SSLCERTDESCR *st)
const char * GWEN_SslCertDescr_GetPubKeyModulus(const GWEN_SSLCERTDESCR *st)
GWEN_SSLCERTDESCR * GWEN_SslCertDescr_new(void)
#define GWEN_DB_FLAGS_DEFAULT
Definition: db.h:168
void GWEN_SslCertDescr_SetCommonName(GWEN_SSLCERTDESCR *st, const char *d)
const char * GWEN_SslCertDescr_GetStateOrProvinceName(const GWEN_SSLCERTDESCR *st)
void GWEN_SslCertDescr_SetFingerPrintSha1(GWEN_SSLCERTDESCR *st, const char *d)
void GWEN_SslCertDescr_SetStatusFlags(GWEN_SSLCERTDESCR *st, uint32_t d)