diff options
author | Martin Willi <martin@strongswan.org> | 2009-04-14 10:34:24 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-04-14 10:34:24 +0000 |
commit | a44bb9345f0482b3dace19a27ee40320ddadc75f (patch) | |
tree | 34d75bd95b2868900213e13c31ddd892d2fd4904 /src/pluto/pgp.c | |
parent | 6e5c8d9413234b18a0631cddadd973a9f509708b (diff) | |
download | strongswan-a44bb9345f0482b3dace19a27ee40320ddadc75f.tar.bz2 strongswan-a44bb9345f0482b3dace19a27ee40320ddadc75f.tar.xz |
merged multi-auth branch back into trunk
Diffstat (limited to 'src/pluto/pgp.c')
-rw-r--r-- | src/pluto/pgp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pluto/pgp.c b/src/pluto/pgp.c index aab9bff67..f6744fd8a 100644 --- a/src/pluto/pgp.c +++ b/src/pluto/pgp.c @@ -521,7 +521,7 @@ static bool same_pgpcert(pgpcert_t *a, pgpcert_t *b) { return a->certificate.len == b->certificate.len && - memcmp(a->certificate.ptr, b->certificate.ptr, b->certificate.len) == 0; + memeq(a->certificate.ptr, b->certificate.ptr, b->certificate.len); } /* @@ -531,7 +531,9 @@ void share_pgpcert(pgpcert_t *cert) { if (cert != NULL) + { cert->count++; + } } /* |