aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/sshkey/sshkey_builder.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-06-19 12:39:12 +0200
committerTobias Brunner <tobias@strongswan.org>2013-07-08 18:49:30 +0200
commitd27f225d9a1064b5883002a293d6adddfbc99a07 (patch)
tree1350ed1a7ccf44fdcfefac02e204406eaddb0b69 /src/libstrongswan/plugins/sshkey/sshkey_builder.c
parentf460facdca9995e32d1c69f84945a306c6063a40 (diff)
downloadstrongswan-d27f225d9a1064b5883002a293d6adddfbc99a07.tar.bz2
strongswan-d27f225d9a1064b5883002a293d6adddfbc99a07.tar.xz
Use strpfx() helper where appropriate
Diffstat (limited to 'src/libstrongswan/plugins/sshkey/sshkey_builder.c')
-rw-r--r--src/libstrongswan/plugins/sshkey/sshkey_builder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/sshkey/sshkey_builder.c b/src/libstrongswan/plugins/sshkey/sshkey_builder.c
index 986e860d9..d6a7c645a 100644
--- a/src/libstrongswan/plugins/sshkey/sshkey_builder.c
+++ b/src/libstrongswan/plugins/sshkey/sshkey_builder.c
@@ -85,7 +85,7 @@ static sshkey_public_key_t *parse_public_key(chunk_t blob)
BUILD_RSA_MODULUS, n, BUILD_RSA_PUB_EXP, e, BUILD_END);
}
else if (format.len > strlen(ECDSA_PREFIX) &&
- strneq(format.ptr, ECDSA_PREFIX, strlen(ECDSA_PREFIX)))
+ strpfx(format.ptr, ECDSA_PREFIX))
{
chunk_t ec_blob, identifier, q, oid, encoded;
sshkey_public_key_t *key;