aboutsummaryrefslogtreecommitdiffstats
path: root/sm/qualified.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/qualified.c')
-rw-r--r--sm/qualified.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sm/qualified.c b/sm/qualified.c
index d0db481b6..bb8e78f7f 100644
--- a/sm/qualified.c
+++ b/sm/qualified.c
@@ -161,7 +161,11 @@ gpgsm_is_in_qualified_list (ctrl_t ctrl, ksba_cert_t cert, char *country)
return gpg_error (GPG_ERR_GENERAL);
if (listfp)
- rewind (listfp);
+ {
+ /* W32ce has no rewind, thus we use the equivalent code. */
+ fseek (listfp, 0, SEEK_SET);
+ clearerr (listfp);
+ }
while (!(err = read_list (key, mycountry, &lnr)))
{
if (!strcmp (key, fpr))