-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathload_cert.cpp
More file actions
44 lines (39 loc) · 1.01 KB
/
load_cert.cpp
File metadata and controls
44 lines (39 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/***************************************************************************
load_cert.cpp - description
-------------------
begin : Sat Dec 14 2002
copyright : (C) 2002 by ARRL
author : Jon Bloom
email : jbloom@arrl.org
revision : $Id$
***************************************************************************/
#ifdef HAVE_CONFIG_H
#include "sysconfig.h"
#endif
#include <cstdlib>
#include <iostream>
#include "tqsllib.h"
using std::string;
using std::ios;
using std::cerr;
using std::cout;
using std::endl;
int
cb(int, const char *msg, void *) {
cout << msg << endl;
return 0;
}
int
main(int argc, char *argv[]) {
if (tqsl_init()) {
cerr << tqsl_getErrorString() << endl;
return EXIT_FAILURE;
}
for (int i = 1; i < argc; i++) {
if (tqsl_importTQSLFile(argv[i], cb, 0)) {
cerr << tqsl_getErrorString() << endl;
return EXIT_FAILURE;
}
}
return EXIT_SUCCESS;
}