From 904158140338b06bb66e686b45ffdc70a24583ed Mon Sep 17 00:00:00 2001 From: Sharif Olorin Date: Mon, 12 Dec 2016 05:34:41 +0000 Subject: [PATCH] Cleanup of old ed25519 bindings --- cbits/tinfoil/sodium/constants.c | 6 +++--- cbits/tinfoil/sodium/constants.h | 6 +++--- test/Test/IO/Tinfoil/Signing/Ed25519/Internal.hs | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/cbits/tinfoil/sodium/constants.c b/cbits/tinfoil/sodium/constants.c index ac33654..33c0858 100644 --- a/cbits/tinfoil/sodium/constants.c +++ b/cbits/tinfoil/sodium/constants.c @@ -2,15 +2,15 @@ #include "constants.h" -size_t tinfoil_sodium_pubkey_len() { +size_t tinfoil_sodium_pubkey_len(void) { return crypto_sign_PUBLICKEYBYTES; } -size_t tinfoil_sodium_seckey_len() { +size_t tinfoil_sodium_seckey_len(void) { return crypto_sign_SECRETKEYBYTES; } -size_t tinfoil_sodium_sig_len() { +size_t tinfoil_sodium_sig_len(void) { return crypto_sign_BYTES; } diff --git a/cbits/tinfoil/sodium/constants.h b/cbits/tinfoil/sodium/constants.h index 4096ba3..933f34c 100644 --- a/cbits/tinfoil/sodium/constants.h +++ b/cbits/tinfoil/sodium/constants.h @@ -5,10 +5,10 @@ #include -size_t tinfoil_sodium_pubkey_len(); +size_t tinfoil_sodium_pubkey_len(void); -size_t tinfoil_sodium_seckey_len(); +size_t tinfoil_sodium_seckey_len(void); -size_t tinfoil_sodium_sig_len(); +size_t tinfoil_sodium_sig_len(void); #endif diff --git a/test/Test/IO/Tinfoil/Signing/Ed25519/Internal.hs b/test/Test/IO/Tinfoil/Signing/Ed25519/Internal.hs index 98b08c9..5af0c70 100644 --- a/test/Test/IO/Tinfoil/Signing/Ed25519/Internal.hs +++ b/test/Test/IO/Tinfoil/Signing/Ed25519/Internal.hs @@ -2,7 +2,6 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE GADTs #-} -{-# OPTIONS_GHC -fno-warn-missing-signatures #-} module Test.IO.Tinfoil.Signing.Ed25519.Internal where import Data.ByteString (ByteString)