fix
[libexssl.git] / test / kgen.c
blob0c9c2d35a89d7935b8da841f1b247818b596a980
1 #include <unistd.h>
2 #include <string.h>
3 #include <sys/types.h>
4 #include <sys/stat.h>
5 #include <fcntl.h>
6 #include <stdlib.h>
7 #include "ssl.h"
9 int main () {
10 if (-1 == ssl_init()) return 1;
11 ssl_key_pair_t *keys = ssl_key_pair_init();
12 strptr_t priv_buf = { .ptr = NULL, .len = 0 }, pub_buf = { .ptr = NULL, .len = 0 };
13 if (-1 == ssl_gen_keys_buf(256, &priv_buf, &pub_buf, "Gp5GwIeGkzvM0t9Y35VDKX3WnxJXuYOB", keys)) {
14 // TODO
16 ssl_free_keys(keys);
17 ssl_done();
18 return 0;