aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-05-08 13:54:33 +0200
committerMartin Willi <martin@revosec.ch>2014-05-16 15:42:07 +0200
commited9bdfee4117fce3db9358ed054bc0226365447d (patch)
treef79c3ae3fcf9a5b9cf8ea629f55507906debc3b7 /src
parent78db68cecf10ff800f28e80f1409eb4b7c4794bc (diff)
downloadstrongswan-ed9bdfee4117fce3db9358ed054bc0226365447d.tar.bz2
strongswan-ed9bdfee4117fce3db9358ed054bc0226365447d.tar.xz
scepclient: Cast OID_UNKNOWN before comparing it to unsigned hash_algorithm_t
clang uses unsigned enums and complains about the always-false -1 check.
Diffstat (limited to 'src')
-rw-r--r--src/scepclient/scepclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scepclient/scepclient.c b/src/scepclient/scepclient.c
index d7abcb423..853490f61 100644
--- a/src/scepclient/scepclient.c
+++ b/src/scepclient/scepclient.c
@@ -896,7 +896,7 @@ int main(int argc, char **argv)
}
hash = hasher_algorithm_from_integrity(token->algorithm,
NULL);
- if (hash == OID_UNKNOWN)
+ if (hash == (hash_algorithm_t)OID_UNKNOWN)
{
usage("invalid algorithm specified");
}