summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2019-04-28 12:05:32 +0200
committerTim Rühsen <tim.ruehsen@gmx.de>2019-05-07 21:10:46 +0200
commitb9380d78d5b1048c0f0a0e57749594cba4ebaaaf (patch)
treeeea1a95bf25bc84174a088a7596cb85098e285ac
parent76c11347bccbfd642f914f632332de5e0bd5131d (diff)
downloadgnutls-b9380d78d5b1048c0f0a0e57749594cba4ebaaaf.tar.gz
Add or clean header guards in lib/extras/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
-rw-r--r--lib/extras/hex.h10
-rw-r--r--lib/extras/randomart.h5
2 files changed, 12 insertions, 3 deletions
diff --git a/lib/extras/hex.h b/lib/extras/hex.h
index 15d4e64932..5fcac98914 100644
--- a/lib/extras/hex.h
+++ b/lib/extras/hex.h
@@ -1,6 +1,8 @@
/* CC0 (Public domain) - see LICENSE file for details */
-#ifndef CCAN_HEX_H
-#define CCAN_HEX_H
+
+#ifndef GNUTLS_LIB_EXTRAS_HEX_H
+#define GNUTLS_LIB_EXTRAS_HEX_H
+
#include "config.h"
#include <stdbool.h>
#include <stdlib.h>
@@ -21,6 +23,7 @@
* if (!hex_decode(argv[1], strlen(argv[1]), data, 20))
* printf("String is malformed!\n");
*/
+
bool hex_decode(const char *str, size_t slen, void *buf, size_t bufsize);
/**
@@ -70,4 +73,5 @@ static inline size_t hex_data_size(size_t slen)
{
return slen / 2;
}
-#endif /* PETTYCOIN_HEX_H */
+
+#endif /* GNUTLS_LIB_EXTRAS_HEX_H */
diff --git a/lib/extras/randomart.h b/lib/extras/randomart.h
index 4c5769334b..b468eb4e80 100644
--- a/lib/extras/randomart.h
+++ b/lib/extras/randomart.h
@@ -1,5 +1,10 @@
+#ifndef GNUTLS_LIB_EXTRAS_RANDOMART_H
+#define GNUTLS_LIB_EXTRAS_RANDOMART_H
+
char *_gnutls_key_fingerprint_randomart(uint8_t * dgst_raw,
u_int dgst_raw_len,
const char *key_type,
unsigned int key_size,
const char *prefix);
+
+#endif /* GNUTLS_LIB_EXTRAS_RANDOMART_H */