8672fd9abeebe988135255cca5e77415173da3eb
[platform/core/security/yaca.git] / examples / misc.c
1 #include <stdio.h>
2 #include <stdarg.h>
3
4 #include <openssl/bio.h>
5 #include "misc.h"
6
7 void dump_hex(const char *buf, size_t dump_size, const char *fmt, ...)
8 {
9         va_list ap;
10
11         va_start(ap, fmt);
12         vprintf(fmt, ap);
13         va_end(ap);
14         putchar('\n');
15         BIO_dump_fp(stdout, buf, dump_size);
16 }