Removed ifdef code in netpgp for now, since it really is only used for Apple. Just needed it for testing. ENGINE-73
authorKrista Grothoff <krista@pep-project.org>
Tue, 16 Aug 2016 16:41:23 +0200
branchENGINE-73
changeset 1023fbaab7b6d87b
parent 1022 33885fd68114
child 1029 5b6af5b14d3a
Removed ifdef code in netpgp for now, since it really is only used for Apple. Just needed it for testing.
src/pgp_netpgp.c
     1.1 --- a/src/pgp_netpgp.c	Tue Aug 16 15:37:19 2016 +0200
     1.2 +++ b/src/pgp_netpgp.c	Tue Aug 16 16:41:23 2016 +0200
     1.3 @@ -203,15 +203,9 @@
     1.4      unsigned armoured = 0;
     1.5      regex_t r;
     1.6      regcomp(&r, pattern, REG_EXTENDED|REG_NOSUB);
     1.7 -#ifdef __APPLE__
     1.8      if (regnexec(&r, buf, size, 0, NULL, 0) == 0) {
     1.9          armoured = 1;
    1.10      }
    1.11 -#else
    1.12 -    if (regexec(&r, buf, 0, NULL, 0) == 0) {
    1.13 -        armoured = 1;
    1.14 -    }
    1.15 -#endif
    1.16      regfree(&r);
    1.17      return armoured;
    1.18  }