Skip to content

Instantly share code, notes, and snippets.

@Slarky
Slarky / benchmark_ucrypto.cpp
Created August 8, 2020 08:25
Solaris 11.4 ucrypto stuff
#include <assert.h>
#include <libucrypto.h>
#include <md5.h>
#include <sha1.h>
#include <sha2.h>
#include <sha3.h>
#include <benchmark/benchmark.h>
--- src/core/network-openssl.c.orig Tue Jan 3 14:36:46 2017
+++ src/core/network-openssl.c Thu Jan 5 22:07:47 2017
@@ -646,7 +646,9 @@
#ifdef SSL_get_server_tmp_key
// Show ephemeral key information.
EVP_PKEY *ephemeral_key = NULL;
+#ifndef OPENSSL_NO_EC
EC_KEY *ec_key = NULL;
+#endif
char *ephemeral_key_algorithm = NULL;