diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-21 09:40:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-21 09:40:15 +0000 |
commit | c4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac (patch) | |
tree | 02e313a83c4416f07fadf650d33aff09dfe46130 /src/util/crypto_rsa.c | |
parent | 40e5092e9a5db88b4c9b62cb341596fbf6ce1cf8 (diff) | |
download | gnunet-c4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac.tar.gz gnunet-c4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac.zip |
fixing 2012: network structure alignment now forced to be correct even on W32 using #pragma pack from gcc 4.x
Diffstat (limited to 'src/util/crypto_rsa.c')
-rw-r--r-- | src/util/crypto_rsa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c index d29566ac8..418fe833b 100644 --- a/src/util/crypto_rsa.c +++ b/src/util/crypto_rsa.c | |||
@@ -53,6 +53,8 @@ struct GNUNET_CRYPTO_RsaPrivateKey | |||
53 | }; | 53 | }; |
54 | 54 | ||
55 | 55 | ||
56 | GNUNET_NETWORK_STRUCT_BEGIN | ||
57 | |||
56 | /** | 58 | /** |
57 | * GNUnet mandates a certain format for the encoding | 59 | * GNUnet mandates a certain format for the encoding |
58 | * of private RSA key information that is provided | 60 | * of private RSA key information that is provided |
@@ -75,7 +77,7 @@ struct RsaPrivateKeyBinaryEncoded | |||
75 | uint16_t sizedmq1 GNUNET_PACKED; /* in big-endian! */ | 77 | uint16_t sizedmq1 GNUNET_PACKED; /* in big-endian! */ |
76 | /* followed by the actual values */ | 78 | /* followed by the actual values */ |
77 | }; | 79 | }; |
78 | 80 | GNUNET_NETWORK_STRUCT_END | |
79 | 81 | ||
80 | #define HOSTKEY_LEN 2048 | 82 | #define HOSTKEY_LEN 2048 |
81 | 83 | ||