summaryrefslogtreecommitdiffstats
path: root/src/protocols/ec25519_fhmqvc
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-10 19:42:06 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-10 19:42:06 +0200
commit2b3043e578f00a5071dfae40c237b86cc6d70c7e (patch)
tree2c7876ce55f85fcbbd58e980dee7ae474b24fe19 /src/protocols/ec25519_fhmqvc
parent4ab823eb500a8a63061eb23581e73ff9d8bffce1 (diff)
downloadfastd-2b3043e578f00a5071dfae40c237b86cc6d70c7e.tar
fastd-2b3043e578f00a5071dfae40c237b86cc6d70c7e.zip
Use #pragma once
Diffstat (limited to 'src/protocols/ec25519_fhmqvc')
-rw-r--r--src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.h5
-rw-r--r--src/protocols/ec25519_fhmqvc/handshake.h5
2 files changed, 2 insertions, 8 deletions
diff --git a/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.h b/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.h
index 40e9e85..19d2cbf 100644
--- a/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.h
+++ b/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.h
@@ -24,8 +24,7 @@
*/
-#ifndef _FASTD_PROTOCOL_EC25519_FHMQVC_H_
-#define _FASTD_PROTOCOL_EC25519_FHMQVC_H_
+#pragma once
#include "../../fastd.h"
#include "../../method.h"
@@ -106,5 +105,3 @@ static inline void hexdump(char out[65], const unsigned char d[32]) {
static inline bool is_session_valid(fastd_context_t *ctx, const protocol_session_t *session) {
return (session->method && session->method->provider->session_is_valid(ctx, session->method_state));
}
-
-#endif /* _FASTD_PROTOCOL_EC25519_FHMQVC_H_ */
diff --git a/src/protocols/ec25519_fhmqvc/handshake.h b/src/protocols/ec25519_fhmqvc/handshake.h
index 04eb571..867b0fa 100644
--- a/src/protocols/ec25519_fhmqvc/handshake.h
+++ b/src/protocols/ec25519_fhmqvc/handshake.h
@@ -24,8 +24,7 @@
*/
-#ifndef _FASTD_PROTOCOL_EC25519_FHMQVC_HANDSHAKE_H_
-#define _FASTD_PROTOCOL_EC25519_FHMQVC_HANDSHAKE_H_
+#pragma once
#include "ec25519_fhmqvc.h"
@@ -51,5 +50,3 @@ static inline bool is_handshake_key_valid(fastd_context_t *ctx, const handshake_
static inline bool is_handshake_key_preferred(fastd_context_t *ctx, const handshake_key_t *handshake_key) {
return !fastd_timed_out(ctx, &handshake_key->preferred_till);
}
-
-#endif /* _FASTD_PROTOCOL_EC25519_FHMQVC_HANDSHAKE_H_ */