diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-03-27 07:31:57 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-03-27 07:32:55 +0100 |
commit | 419a9a4fcda09e5e196a23beb4f10ba28e9386bd (patch) | |
tree | c62d2beef9ad480699397b5174ea4d6cf18997cf /src | |
parent | c59f3dcb68c0dc136f779db0374520e22166bed4 (diff) | |
download | strongswan-419a9a4fcda09e5e196a23beb4f10ba28e9386bd.tar.bz2 strongswan-419a9a4fcda09e5e196a23beb4f10ba28e9386bd.tar.xz |
Make some private functions in plugins static
Fixes monolithic build.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/plugins/dnskey/dnskey_encoder.c | 4 | ||||
-rw-r--r-- | src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libstrongswan/plugins/dnskey/dnskey_encoder.c b/src/libstrongswan/plugins/dnskey/dnskey_encoder.c index d2b9894b8..3214f3899 100644 --- a/src/libstrongswan/plugins/dnskey/dnskey_encoder.c +++ b/src/libstrongswan/plugins/dnskey/dnskey_encoder.c @@ -20,7 +20,7 @@ /** * Encode an RSA public key in DNSKEY format (RFC 3110) */ -bool build_pub(chunk_t *encoding, va_list args) +static bool build_pub(chunk_t *encoding, va_list args) { chunk_t n, e, pubkey; size_t exp_len; @@ -53,7 +53,7 @@ bool build_pub(chunk_t *encoding, va_list args) pubkey = chunk_alloc(exp_len + e.len + n.len); pubkey.ptr[0] = 0x00; htoun16(pubkey.ptr + 1, e.len); - } + } else { /* exponent length is too large */ diff --git a/src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c b/src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c index 60f0ca757..2c3bf6e7c 100644 --- a/src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c +++ b/src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c @@ -22,7 +22,7 @@ /** * Encode a public key in PKCS#1/ASN.1 DER */ -bool build_pub(chunk_t *encoding, va_list args) +static bool build_pub(chunk_t *encoding, va_list args) { chunk_t n, e; @@ -40,7 +40,7 @@ bool build_pub(chunk_t *encoding, va_list args) /** * Encode a public key in PKCS#1/ASN.1 DER, contained in subjectPublicKeyInfo */ -bool build_pub_info(chunk_t *encoding, va_list args) +static bool build_pub_info(chunk_t *encoding, va_list args) { chunk_t n, e; @@ -61,7 +61,7 @@ bool build_pub_info(chunk_t *encoding, va_list args) /** * Encode a private key in PKCS#1/ASN.1 DER */ -bool build_priv(chunk_t *encoding, va_list args) +static bool build_priv(chunk_t *encoding, va_list args) { chunk_t n, e, d, p, q, exp1, exp2, coeff; |