aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-10-28 02:40:25 +0100
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-10-30 12:21:39 -0700
commit6d22bdcb932b990b43d4e050c95fbd7afb72f5df (patch)
tree2e7c8d2fa5e8233b05d4d160254f32ef46da1beb
parent0b8105a928e91c3f62d591c5e31f88e6427d0d1c (diff)
downloadcrda-6d22bdcb932b990b43d4e050c95fbd7afb72f5df.tar.gz
crda: make ssl keys include stdint.h
This is required to fix compilation if we move reglig to its own library. Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
-rwxr-xr-xutils/key2pub.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/key2pub.py b/utils/key2pub.py
index 4d85369..3e84cd2 100755
--- a/utils/key2pub.py
+++ b/utils/key2pub.py
@@ -59,6 +59,7 @@ def print_ssl_32(output, name, val):
def print_ssl(output, name, val):
import struct
+ output.write('#include <stdint.h>\n')
if len(struct.pack('@L', 0)) == 8:
return print_ssl_64(output, name, val)
else:
@@ -85,6 +86,7 @@ static struct pubkey keys[] = {
pass
def print_gcrypt(output, name, val):
+ output.write('#include <stdint.h>\n')
while val[0] == '\0':
val = val[1:]
output.write('static const uint8_t %s[%d] = {\n' % (name, len(val)))