projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use conditional compilation for cryptographic functions.
[tinc]
/
src
/
gcrypt
/
prf.c
diff --git
a/src/openssl/crypto.h
b/src/gcrypt/prf.c
similarity index 64%
rename from
src/openssl/crypto.h
rename to
src/gcrypt/prf.c
index
8047bfb
..
f9a2112
100644
(file)
--- a/
src/openssl/crypto.h
+++ b/
src/gcrypt/prf.c
@@
-1,6
+1,6
@@
/*
/*
- crypto.h -- header for crypto.c
- Copyright (C) 20
07
Guus Sliepen <guus@tinc-vpn.org>
+ prf.c -- Pseudo-Random Function for key material generation
+ Copyright (C) 20
11-2013
Guus Sliepen <guus@tinc-vpn.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-17,11
+17,13
@@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __TINC_CRYPTO_H__
-#define __TINC_CRYPTO_H__
+#include "../system.h"
-extern void crypto_init();
-extern void crypto_exit();
-extern void randomize(void *, size_t);
+#include "digest.h"
+#include "../digest.h"
+#include "../prf.h"
-#endif
+bool prf(const char *secret, size_t secretlen, char *seed, size_t seedlen, char *out, size_t outlen) {
+ logger(DEBUG_ALWAYS, LOG_ERR, "PRF support using libgcrypt not implemented");
+ return false;
+}