pgp_netpgp.c generates 'PEP_VERIFIED_AND_TRUSTED', so accept this as a result of verify_text for now. sync
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Thu, 13 Jun 2019 12:52:48 +0200
branchsync
changeset 383144e274f79ec1
parent 3826 09813a43e17d
child 3832 8860f25e9be9
child 3841 f9d1e79ae49b
pgp_netpgp.c generates 'PEP_VERIFIED_AND_TRUSTED', so accept this as a result of verify_text for now.
src/baseprotocol.c
     1.1 --- a/src/baseprotocol.c	Mon Jun 10 12:38:19 2019 +0200
     1.2 +++ b/src/baseprotocol.c	Thu Jun 13 12:52:48 2019 +0200
     1.3 @@ -164,7 +164,7 @@
     1.4      char *_fpr = NULL;
     1.5      if (_sign) {
     1.6          status = verify_text(session, _payload, _payload_size, _sign, _sign_size, &keylist);
     1.7 -        if (status != PEP_VERIFIED || !keylist || !keylist->value) {
     1.8 +        if (!(status == PEP_VERIFIED || status == PEP_VERIFIED_AND_TRUSTED) || !keylist || !keylist->value) {
     1.9              // signature invalid or does not match; ignore sync message
    1.10              status = PEP_STATUS_OK;
    1.11              goto the_end;
    1.12 @@ -187,4 +187,3 @@
    1.13      free_stringlist(keylist);
    1.14      return status;
    1.15  }
    1.16 -