mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-07 04:02:18 +03:00
fixed gcrypt lib initialization to support mt removed some gnutls psk code added CIPHER_ALGORITHM & KX_PRIORITY options added certificate loading test added TLS GET test
25 lines
414 B
C
25 lines
414 B
C
#if HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <gnutls.h>
|
|
|
|
const char *_gnutls_strerror (int);
|
|
|
|
typedef struct
|
|
{
|
|
char name[128];
|
|
int error_index;
|
|
} error_name;
|
|
|
|
static int
|
|
compar (const void *_n1, const void *_n2)
|
|
{
|
|
const error_name *n1 = (const error_name *) _n1,
|
|
*n2 = (const error_name *) _n2;
|
|
return strcmp (n1->name, n2->name);
|
|
}
|