sequoia: Update to reflect changes to Sequoia's API. sync
authorNeal H. Walfield <neal@pep.foundation>
Thu, 21 Mar 2019 14:32:58 +0100
branchsync
changeset 336944b98ddc4aed
parent 3368 20388b52068e
child 3370 2d309924ea61
sequoia: Update to reflect changes to Sequoia's API.

- pgp_encrypt_new, pgp_signer_new and pgp_signer_new_detached now
take the algorithm to use. Pass 0, meaning the default.
src/pgp_sequoia.c
     1.1 --- a/src/pgp_sequoia.c	Thu Mar 21 09:42:06 2019 +0100
     1.2 +++ b/src/pgp_sequoia.c	Thu Mar 21 14:32:58 2019 +0100
     1.3 @@ -1286,7 +1286,7 @@
     1.4  
     1.5      ws = pgp_writer_stack_message(writer);
     1.6  
     1.7 -    ws = pgp_signer_new_detached(&err, ws, &signer, 1);
     1.8 +    ws = pgp_signer_new_detached(&err, ws, &signer, 1, 0);
     1.9      if (!ws)
    1.10          ERROR_OUT(err, PEP_UNKNOWN_ERROR, "Setting up signer");
    1.11  
    1.12 @@ -1376,8 +1376,8 @@
    1.13  
    1.14      ws = pgp_writer_stack_message(writer);
    1.15      ws = pgp_encryptor_new (&err, ws,
    1.16 -                           NULL, 0, keys, keys_count,
    1.17 -                           PGP_ENCRYPTION_MODE_FOR_TRANSPORT);
    1.18 +                            NULL, 0, keys, keys_count,
    1.19 +                            PGP_ENCRYPTION_MODE_FOR_TRANSPORT, 0);
    1.20      if (!ws) {
    1.21          pgp_writer_free(writer);
    1.22          ERROR_OUT(err, PEP_UNKNOWN_ERROR, "Setting up encryptor");
    1.23 @@ -1403,7 +1403,7 @@
    1.24          if (! signer)
    1.25              ERROR_OUT (err, PEP_UNKNOWN_ERROR, "Creating a signer");
    1.26  
    1.27 -        ws = pgp_signer_new(&err, ws, &signer, 1);
    1.28 +        ws = pgp_signer_new(&err, ws, &signer, 1, 0);
    1.29          if (!ws)
    1.30              ERROR_OUT(err, PEP_UNKNOWN_ERROR, "Setting up signer");
    1.31      }