/
githubmirror
/
gnutls
Обзор
Документация
Войти
/
githubmirror
/
gnutls
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/slow/crypto.c
19 строк
416 B
Daiki Ueno
tests: add missing global_init/gnutls_global_deinit for MinGW
04 июн 2024, 10:29
04 июн 2024, 10:29
1ce4ffa
Код
Авторство
О чём код?
#include "config.h" #include <stdint.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <gnutls/crypto.h> /* this tests whether including crypto.h is sufficient to use * its functionality */ int main(int argc, char **argv) { char output[64]; gnutls_global_init(); assert(gnutls_hash_fast(GNUTLS_DIG_SHA256, "abc", 3, output) >= 0); gnutls_global_deinit(); return 0; }