Commit a120b384 authored by Nils Ohlmeier's avatar Nils Ohlmeier

moved srtp_debug_module's to new header as well

parent 85ca187e
......@@ -1401,8 +1401,6 @@ static const uint32_t U4[256] = {
/* aes internals */
extern srtp_debug_module_t srtp_mod_aes_icm;
static void aes_128_expand_encryption_key(const uint8_t *key,
srtp_aes_expanded_key_t *expanded_key)
{
......
......@@ -54,10 +54,6 @@
#include "alloc.h"
#include "cipher_types.h"
/* the null_cipher uses the cipher debug module */
extern srtp_debug_module_t srtp_mod_cipher;
static srtp_err_status_t srtp_null_cipher_alloc(srtp_cipher_t **c,
int key_len,
int tlen)
......
......@@ -53,10 +53,6 @@
#include "alloc.h"
#include "cipher_types.h"
/* null_auth uses the auth debug module */
extern srtp_debug_module_t srtp_mod_auth;
static srtp_err_status_t srtp_null_auth_alloc(srtp_auth_t **a,
int key_len,
int out_len)
......
......@@ -60,4 +60,22 @@ const srtp_cipher_type_t srtp_aes_gcm_256_openssl;
const srtp_auth_type_t srtp_null_auth;
const srtp_auth_type_t srtp_hmac;
/*
* other generic debug modules that can be included in the kernel
*/
srtp_debug_module_t srtp_mod_auth;
srtp_debug_module_t srtp_mod_cipher;
srtp_debug_module_t mod_stat;
srtp_debug_module_t mod_alloc;
/* debug modules for cipher types */
srtp_debug_module_t srtp_mod_aes_icm;
#ifdef OPENSSL
srtp_debug_module_t srtp_mod_aes_gcm;
#endif
/* debug modules for auth types */
srtp_debug_module_t srtp_mod_hmac;
#endif
......@@ -58,23 +58,6 @@ srtp_debug_module_t srtp_mod_crypto_kernel = {
"crypto kernel" /* printable name for module */
};
/*
* other generic debug modules that can be included in the kernel
*/
extern srtp_debug_module_t srtp_mod_auth;
extern srtp_debug_module_t srtp_mod_cipher;
extern srtp_debug_module_t mod_stat;
extern srtp_debug_module_t mod_alloc;
/* debug modules for cipher types */
extern srtp_debug_module_t srtp_mod_aes_icm;
#ifdef OPENSSL
extern srtp_debug_module_t srtp_mod_aes_gcm;
#endif
/* debug modules for auth types */
extern srtp_debug_module_t srtp_mod_hmac;
/* crypto_kernel is a global variable, the only one of its datatype */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment