diff options
author | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-10-28 02:40:25 +0100 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-10-30 12:21:39 -0700 |
commit | 6d22bdcb932b990b43d4e050c95fbd7afb72f5df (patch) | |
tree | 2e7c8d2fa5e8233b05d4d160254f32ef46da1beb | |
parent | 0b8105a928e91c3f62d591c5e31f88e6427d0d1c (diff) | |
download | crda-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-x | utils/key2pub.py | 2 |
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))) |