gwenhywfar  4.99.8beta
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 
26 GWEN_SSLCERTDESCR *GWEN_SslCertDescr_new(void) {
27  GWEN_SSLCERTDESCR *st;
28 
29  GWEN_NEW_OBJECT(GWEN_SSLCERTDESCR, st)
30  st->_usage=1;
31  GWEN_LIST_INIT(GWEN_SSLCERTDESCR, st)
32  return st;
33 }
34 
35 
37  if (st) {
38  assert(st->_usage);
39  if (--(st->_usage)==0) {
40  if (st->countryName)
41  free(st->countryName);
42  if (st->commonName)
43  free(st->commonName);
44  if (st->organizationName)
45  free(st->organizationName);
46  if (st->organizationalUnitName)
47  free(st->organizationalUnitName);
48  if (st->localityName)
49  free(st->localityName);
50  if (st->stateOrProvinceName)
51  free(st->stateOrProvinceName);
52  if (st->notBefore)
53  GWEN_Time_free(st->notBefore);
54  if (st->notAfter)
55  GWEN_Time_free(st->notAfter);
56  if (st->ipAddress)
57  free(st->ipAddress);
58  if (st->fingerPrint)
59  free(st->fingerPrint);
60  if (st->fingerPrintSha1)
61  free(st->fingerPrintSha1);
62  if (st->fingerPrintSha512)
63  free(st->fingerPrintSha512);
64  if (st->pubKeyModulus)
65  free(st->pubKeyModulus);
66  if (st->pubKeyExponent)
67  free(st->pubKeyExponent);
68  if (st->statusText)
69  free(st->statusText);
71  GWEN_FREE_OBJECT(st);
72  }
73  }
74 
75 }
76 
77 
80 
81  assert(d);
83  if (d->countryName)
84  st->countryName=strdup(d->countryName);
85  if (d->commonName)
86  st->commonName=strdup(d->commonName);
87  if (d->organizationName)
88  st->organizationName=strdup(d->organizationName);
89  if (d->organizationalUnitName)
90  st->organizationalUnitName=strdup(d->organizationalUnitName);
91  if (d->localityName)
92  st->localityName=strdup(d->localityName);
93  if (d->stateOrProvinceName)
94  st->stateOrProvinceName=strdup(d->stateOrProvinceName);
95  if (d->notBefore)
96  st->notBefore=GWEN_Time_dup(d->notBefore);
97  if (d->notAfter)
98  st->notAfter=GWEN_Time_dup(d->notAfter);
99  if (d->ipAddress)
100  st->ipAddress=strdup(d->ipAddress);
101  if (d->fingerPrint)
102  st->fingerPrint=strdup(d->fingerPrint);
103  if (d->fingerPrintSha1)
104  st->fingerPrintSha1=strdup(d->fingerPrintSha1);
105  if (d->fingerPrintSha512)
106  st->fingerPrintSha512=strdup(d->fingerPrintSha512);
107  if (d->pubKeyModulus)
108  st->pubKeyModulus=strdup(d->pubKeyModulus);
109  if (d->pubKeyExponent)
110  st->pubKeyExponent=strdup(d->pubKeyExponent);
111  if (d->statusText)
112  st->statusText=strdup(d->statusText);
113  st->isError=d->isError;
114  st->statusFlags=d->statusFlags;
115  return st;
116 }
117 
118 
120  assert(st);
121  assert(db);
122  if (st->countryName)
123  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "countryName", st->countryName))
124  return -1;
125  if (st->commonName)
126  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "commonName", st->commonName))
127  return -1;
128  if (st->organizationName)
129  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "organizationName", st->organizationName))
130  return -1;
131  if (st->organizationalUnitName)
132  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "organizationalUnitName", st->organizationalUnitName))
133  return -1;
134  if (st->localityName)
135  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "localityName", st->localityName))
136  return -1;
137  if (st->stateOrProvinceName)
138  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "stateOrProvinceName", st->stateOrProvinceName))
139  return -1;
140  if (st->notBefore)
141  if (GWEN_Time_toDb(st->notBefore, GWEN_DB_GetGroup(db, GWEN_DB_FLAGS_DEFAULT, "notBefore")))
142  return -1;
143  if (st->notAfter)
144  if (GWEN_Time_toDb(st->notAfter, GWEN_DB_GetGroup(db, GWEN_DB_FLAGS_DEFAULT, "notAfter")))
145  return -1;
146  if (st->ipAddress)
147  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "ipAddress", st->ipAddress))
148  return -1;
149  if (st->fingerPrint)
150  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "fingerPrint", st->fingerPrint))
151  return -1;
152  if (st->fingerPrintSha1)
153  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "fingerPrintSha1", st->fingerPrintSha1))
154  return -1;
155  if (st->fingerPrintSha512)
156  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "fingerPrintSha512", st->fingerPrintSha512))
157  return -1;
158  if (st->pubKeyModulus)
159  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "pubKeyModulus", st->pubKeyModulus))
160  return -1;
161  if (st->pubKeyExponent)
162  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "pubKeyExponent", st->pubKeyExponent))
163  return -1;
164  if (st->statusText)
165  if (GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "statusText", st->statusText))
166  return -1;
167  if (GWEN_DB_SetIntValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "isError", st->isError))
168  return -1;
169  if (GWEN_DB_SetIntValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "statusFlags", st->statusFlags))
170  return -1;
171  return 0;
172 }
173 
174 
176  assert(st);
177  assert(db);
178  GWEN_SslCertDescr_SetCountryName(st, GWEN_DB_GetCharValue(db, "countryName", 0, 0));
179  GWEN_SslCertDescr_SetCommonName(st, GWEN_DB_GetCharValue(db, "commonName", 0, 0));
180  GWEN_SslCertDescr_SetOrganizationName(st, GWEN_DB_GetCharValue(db, "organizationName", 0, 0));
181  GWEN_SslCertDescr_SetOrganizationalUnitName(st, GWEN_DB_GetCharValue(db, "organizationalUnitName", 0, 0));
182  GWEN_SslCertDescr_SetLocalityName(st, GWEN_DB_GetCharValue(db, "localityName", 0, 0));
183  GWEN_SslCertDescr_SetStateOrProvinceName(st, GWEN_DB_GetCharValue(db, "stateOrProvinceName", 0, 0));
184  if (1) { /* for local vars */
185  GWEN_DB_NODE *dbT;
186 
187  dbT=GWEN_DB_GetGroup(db, GWEN_PATH_FLAGS_NAMEMUSTEXIST, "notBefore");
188  if (dbT) {
189  if (st->notBefore)
190  GWEN_Time_free(st->notBefore);
191  st->notBefore=GWEN_Time_fromDb(dbT);
192 }
193  }
194  if (1) { /* for local vars */
195  GWEN_DB_NODE *dbT;
196 
197  dbT=GWEN_DB_GetGroup(db, GWEN_PATH_FLAGS_NAMEMUSTEXIST, "notAfter");
198  if (dbT) {
199  if (st->notAfter)
200  GWEN_Time_free(st->notAfter);
201  st->notAfter=GWEN_Time_fromDb(dbT);
202 }
203  }
204  GWEN_SslCertDescr_SetIpAddress(st, GWEN_DB_GetCharValue(db, "ipAddress", 0, 0));
205  GWEN_SslCertDescr_SetFingerPrint(st, GWEN_DB_GetCharValue(db, "fingerPrint", 0, 0));
206  GWEN_SslCertDescr_SetFingerPrintSha1(st, GWEN_DB_GetCharValue(db, "fingerPrintSha1", 0, 0));
207  GWEN_SslCertDescr_SetFingerPrintSha512(st, GWEN_DB_GetCharValue(db, "fingerPrintSha512", 0, 0));
208  GWEN_SslCertDescr_SetPubKeyModulus(st, GWEN_DB_GetCharValue(db, "pubKeyModulus", 0, 0));
209  GWEN_SslCertDescr_SetPubKeyExponent(st, GWEN_DB_GetCharValue(db, "pubKeyExponent", 0, 0));
210  GWEN_SslCertDescr_SetStatusText(st, GWEN_DB_GetCharValue(db, "statusText", 0, 0));
211  GWEN_SslCertDescr_SetIsError(st, GWEN_DB_GetIntValue(db, "isError", 0, 0));
212  GWEN_SslCertDescr_SetStatusFlags(st, GWEN_DB_GetIntValue(db, "statusFlags", 0, 0));
213  return 0;
214 }
215 
216 
218  GWEN_SSLCERTDESCR *st;
219 
220  assert(db);
222  GWEN_SslCertDescr_ReadDb(st, db);
223  st->_modified=0;
224  return st;
225 }
226 
227 
228 
229 
231  assert(st);
232  return st->countryName;
233 }
234 
235 
237  assert(st);
238  if (st->countryName)
239  free(st->countryName);
240  if (d && *d)
241  st->countryName=strdup(d);
242  else
243  st->countryName=0;
244  st->_modified=1;
245 }
246 
247 
248 
249 
251  assert(st);
252  return st->commonName;
253 }
254 
255 
257  assert(st);
258  if (st->commonName)
259  free(st->commonName);
260  if (d && *d)
261  st->commonName=strdup(d);
262  else
263  st->commonName=0;
264  st->_modified=1;
265 }
266 
267 
268 
269 
271  assert(st);
272  return st->organizationName;
273 }
274 
275 
277  assert(st);
278  if (st->organizationName)
279  free(st->organizationName);
280  if (d && *d)
281  st->organizationName=strdup(d);
282  else
283  st->organizationName=0;
284  st->_modified=1;
285 }
286 
287 
288 
289 
291  assert(st);
292  return st->organizationalUnitName;
293 }
294 
295 
297  assert(st);
298  if (st->organizationalUnitName)
299  free(st->organizationalUnitName);
300  if (d && *d)
301  st->organizationalUnitName=strdup(d);
302  else
303  st->organizationalUnitName=0;
304  st->_modified=1;
305 }
306 
307 
308 
309 
311  assert(st);
312  return st->localityName;
313 }
314 
315 
317  assert(st);
318  if (st->localityName)
319  free(st->localityName);
320  if (d && *d)
321  st->localityName=strdup(d);
322  else
323  st->localityName=0;
324  st->_modified=1;
325 }
326 
327 
328 
329 
331  assert(st);
332  return st->stateOrProvinceName;
333 }
334 
335 
337  assert(st);
338  if (st->stateOrProvinceName)
339  free(st->stateOrProvinceName);
340  if (d && *d)
341  st->stateOrProvinceName=strdup(d);
342  else
343  st->stateOrProvinceName=0;
344  st->_modified=1;
345 }
346 
347 
348 
349 
351  assert(st);
352  return st->notBefore;
353 }
354 
355 
357  assert(st);
358  if (st->notBefore)
359  GWEN_Time_free(st->notBefore);
360  if (d)
361  st->notBefore=GWEN_Time_dup(d);
362  else
363  st->notBefore=0;
364  st->_modified=1;
365 }
366 
367 
368 
369 
371  assert(st);
372  return st->notAfter;
373 }
374 
375 
377  assert(st);
378  if (st->notAfter)
379  GWEN_Time_free(st->notAfter);
380  if (d)
381  st->notAfter=GWEN_Time_dup(d);
382  else
383  st->notAfter=0;
384  st->_modified=1;
385 }
386 
387 
388 
389 
391  assert(st);
392  return st->ipAddress;
393 }
394 
395 
397  assert(st);
398  if (st->ipAddress)
399  free(st->ipAddress);
400  if (d && *d)
401  st->ipAddress=strdup(d);
402  else
403  st->ipAddress=0;
404  st->_modified=1;
405 }
406 
407 
408 
409 
411  assert(st);
412  return st->fingerPrint;
413 }
414 
415 
417  assert(st);
418  if (st->fingerPrint)
419  free(st->fingerPrint);
420  if (d && *d)
421  st->fingerPrint=strdup(d);
422  else
423  st->fingerPrint=0;
424  st->_modified=1;
425 }
426 
427 
428 
429 
431  assert(st);
432  return st->fingerPrintSha1;
433 }
434 
435 
437  assert(st);
438  if (st->fingerPrintSha1)
439  free(st->fingerPrintSha1);
440  if (d && *d)
441  st->fingerPrintSha1=strdup(d);
442  else
443  st->fingerPrintSha1=0;
444  st->_modified=1;
445 }
446 
447 
448 
449 
451  assert(st);
452  return st->fingerPrintSha512;
453 }
454 
455 
457  assert(st);
458  if (st->fingerPrintSha512)
459  free(st->fingerPrintSha512);
460  if (d && *d)
461  st->fingerPrintSha512=strdup(d);
462  else
463  st->fingerPrintSha512=0;
464  st->_modified=1;
465 }
466 
467 
468 
469 
471  assert(st);
472  return st->pubKeyModulus;
473 }
474 
475 
477  assert(st);
478  if (st->pubKeyModulus)
479  free(st->pubKeyModulus);
480  if (d && *d)
481  st->pubKeyModulus=strdup(d);
482  else
483  st->pubKeyModulus=0;
484  st->_modified=1;
485 }
486 
487 
488 
489 
491  assert(st);
492  return st->pubKeyExponent;
493 }
494 
495 
497  assert(st);
498  if (st->pubKeyExponent)
499  free(st->pubKeyExponent);
500  if (d && *d)
501  st->pubKeyExponent=strdup(d);
502  else
503  st->pubKeyExponent=0;
504  st->_modified=1;
505 }
506 
507 
508 
509 
511  assert(st);
512  return st->statusText;
513 }
514 
515 
517  assert(st);
518  if (st->statusText)
519  free(st->statusText);
520  if (d && *d)
521  st->statusText=strdup(d);
522  else
523  st->statusText=0;
524  st->_modified=1;
525 }
526 
527 
528 
529 
531  assert(st);
532  return st->isError;
533 }
534 
535 
537  assert(st);
538  st->isError=d;
539  st->_modified=1;
540 }
541 
542 
543 
544 
546  assert(st);
547  return st->statusFlags;
548 }
549 
550 
552  assert(st);
553  st->statusFlags=d;
554  st->_modified=1;
555 }
556 
557 
558 
559 
561  assert(st);
562  return st->_modified;
563 }
564 
565 
567  assert(st);
568  st->_modified=i;
569 }
570 
571 
573  assert(st);
574  st->_usage++;
575 }
578 return 0;
579 }
580 
581 
583  if (stl) {
586  }
587 }
588 
589 
591  if (stl) {
594 
597  while(e) {
598  GWEN_SSLCERTDESCR *ne;
599 
600  ne=GWEN_SslCertDescr_dup(e);
601  assert(ne);
604  } /* while (e) */
605  return nl;
606  }
607  else
608  return 0;
609 }
610 
611 
612 
613 
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:425
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:156
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:116
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:897
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:1260
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:437
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:922
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:1048
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:1086
#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)