libqaeda

Unnamed repository; edit this file 'description' to name the repository.
Info | Log | Files | Refs | README | LICENSE

base.c (539B)


      1 #include <libtasn1.h>
      2 #include <llog.h>
      3 
      4 #include "lq/wire.h"
      5 #include "err.h"
      6 #include "config.h"
      7 #include "debug.h"
      8 
      9 
     10 asn1_node asn;
     11 
     12 char zeros[65];
     13 
     14 int lq_init() {
     15 	int r;
     16 
     17 	r = asn1_array2tree(defs_asn1_tab, &asn, NULL);
     18 	if (r != ASN1_SUCCESS) {
     19 		return debug_logerr(LLOG_ERROR, ERR_INIT, "asn init");
     20 	}
     21 
     22 	lq_err_init();
     23 	return lq_config_init();
     24 }
     25 
     26 void lq_finish() {
     27 //	int r;
     28 //
     29 //	r = asn1_delete_structure(&asn);
     30 //	if (r != ASN1_SUCCESS) {
     31 //		debug_logerr(LLOG_ERROR, ERR_UNCLEAN, "asn exit");
     32 //	}
     33 //
     34 	lq_config_free();
     35 }