Hello community,

here is the log from the commit of package gpg2 for openSUSE:Factory
checked in at Mon Aug 8 15:00:07 CEST 2011.



--------
--- gpg2/gpg2.changes   2011-03-15 10:49:13.000000000 +0100
+++ /mounts/work_src_done/STABLE/gpg2/gpg2.changes      2011-08-06 
22:24:40.000000000 +0200
@@ -1,0 +2,12 @@
+Sat Aug  6 20:19:09 UTC 2011 - [email protected]
+
+- update to upstream 2.0.18
+ * Bug fix for newer versions of Libgcrypt.
+ * Support the SSH confirm flag and show SSH fingerprints in ssh
+   related pinentries.
+ * Improved dirmngr/gpgsm interaction for OCSP.
+ * Allow generation of card keys up to 4096 bit.
+- refresh patch gnupg-2.0.10-tmpdir.diff -> gnupg-2.0.18-tmpdir.diff
+- refresh patch gnupg-files-are-digests.patch -> 
gnupg-2.0.18-files-are-digests.patch
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
  gnupg-2.0.10-tmpdir.diff
  gnupg-2.0.17.tar.bz2
  gnupg-files-are-digests.patch

New:
----
  gnupg-2.0.18-files-are-digests.patch
  gnupg-2.0.18-tmpdir.diff
  gnupg-2.0.18.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gpg2.spec ++++++
--- /var/tmp/diff_new_pack.SLSwb8/_old  2011-08-08 14:59:31.000000000 +0200
+++ /var/tmp/diff_new_pack.SLSwb8/_new  2011-08-08 14:59:31.000000000 +0200
@@ -19,7 +19,7 @@
 
 
 Name:           gpg2
-Version:        2.0.17
+Version:        2.0.18
 Release:        1
 BuildRequires:  expect
 BuildRequires:  fdupes
@@ -51,11 +51,11 @@
 Obsoletes:      gpg < 1.4.9
 Summary:        GnuPG 2
 Source:         gnupg-%{version}.tar.bz2
-Patch1:         gnupg-2.0.10-tmpdir.diff
+Patch1:         gnupg-2.0.18-tmpdir.diff
 Patch2:         gnupg-2.0.4-install_tools.diff
 Patch3:         gnupg-2.0.9-RSA_ES.patch
 Patch4:         gnupg-2.0.9-langinfo.patch
-Patch5:         gnupg-files-are-digests.patch
+Patch5:         gnupg-2.0.18-files-are-digests.patch
 Patch6:         gnupg-dont-fail-with-seahorse-agent.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 

++++++ gnupg-2.0.18-files-are-digests.patch ++++++
diff -rup gnupg-2.0.18.orig/g10/gpg.c gnupg-2.0.18/g10/gpg.c
--- gnupg-2.0.18.orig/g10/gpg.c 2011-07-22 13:00:44.000000000 +0100
+++ gnupg-2.0.18/g10/gpg.c      2011-08-06 21:07:32.000000000 +0100
@@ -341,6 +341,7 @@ enum cmd_and_opt_values
     oTTYtype,
     oLCctype,
     oLCmessages,
+       oFilesAreDigests,
     oXauthority,
     oGroup,
     oUnGroup,
@@ -706,6 +707,7 @@ static ARGPARSE_OPTS opts[] = {
   ARGPARSE_s_s (oPersonalDigestPreferences, "personal-digest-preferences","@"),
   ARGPARSE_s_s (oPersonalCompressPreferences,
                                          "personal-compress-preferences", "@"),
+  ARGPARSE_s_n (oFilesAreDigests, "files-are-digests", "@"),
 
   /* Aliases.  I constantly mistype these, and assume other people do
      as well. */
@@ -1996,6 +1998,7 @@ main (int argc, char **argv)
     opt.def_sig_expire="0";
     opt.def_cert_expire="0";
     set_homedir ( default_homedir () );
+       opt.files_are_digests=0;
     opt.passphrase_repeat=1;
 
     /* Check whether we have a config file on the command line.  */
@@ -2484,6 +2487,7 @@ main (int argc, char **argv)
          case oPhotoViewer: opt.photo_viewer = pargs.r.ret_str; break;
          case oForceV3Sigs: opt.force_v3_sigs = 1; break;
          case oNoForceV3Sigs: opt.force_v3_sigs = 0; break;
+         case oFilesAreDigests: opt.files_are_digests = 1; break;
           case oForceV4Certs: opt.force_v4_certs = 1; break;
           case oNoForceV4Certs: opt.force_v4_certs = 0; break;
          case oForceMDC: opt.force_mdc = 1; break;
Only in gnupg-2.0.18/g10: gpg.c.orig
diff -rup gnupg-2.0.18.orig/g10/options.h gnupg-2.0.18/g10/options.h
--- gnupg-2.0.18.orig/g10/options.h     2011-07-22 13:00:44.000000000 +0100
+++ gnupg-2.0.18/g10/options.h  2011-08-06 21:07:32.000000000 +0100
@@ -194,6 +194,7 @@ struct
   int no_auto_check_trustdb;
   int preserve_permissions;
   int no_homedir_creation;
+  int files_are_digests;
   struct groupitem *grouplist;
   int mangle_dos_filenames;
   int enable_progress_filter;
diff -rup gnupg-2.0.18.orig/g10/sign.c gnupg-2.0.18/g10/sign.c
--- gnupg-2.0.18.orig/g10/sign.c        2011-07-22 13:00:44.000000000 +0100
+++ gnupg-2.0.18/g10/sign.c     2011-08-06 21:07:32.000000000 +0100
@@ -665,8 +665,12 @@ write_signature_packets (SK_LIST sk_list
             mk_notation_policy_etc (sig, NULL, sk);
           }
 
+       if (!opt.files_are_digests) {
         hash_sigversion_to_magic (md, sig);
        gcry_md_final (md);
+       } else if (sig->version >= 4) {
+           log_bug("files-are-digests doesn't work with v4 sigs\n");
+       }
 
        rc = do_sign( sk, sig, md, hash_for (sk) );
        gcry_md_close (md);
@@ -723,6 +727,8 @@ sign_file( strlist_t filenames, int deta
     SK_LIST sk_rover = NULL;
     int multifile = 0;
     u32 duration=0;
+       int sigclass = 0x00;
+       u32 timestamp = 0;
 
     pfx = new_progress_context ();
     afx = new_armor_context ();
@@ -739,7 +745,16 @@ sign_file( strlist_t filenames, int deta
        fname = NULL;
 
     if( fname && filenames->next && (!detached || encryptflag) )
-       log_bug("multiple files can only be detached signed");
+       log_bug("multiple files can only be detached signed\n");
+
+    if (opt.files_are_digests && (multifile || !fname))
+       log_bug("files-are-digests only works with one file\n");
+    if (opt.files_are_digests && !detached)
+       log_bug("files-are-digests can only write detached signatures\n");
+    if (opt.files_are_digests && !opt.def_digest_algo)
+       log_bug("files-are-digests needs --digest-algo\n");
+    if (opt.files_are_digests && opt.textmode)
+       log_bug("files-are-digests doesn't work with --textmode\n");
 
     if(encryptflag==2
        && (rc=setup_symkey(&efx.symkey_s2k,&efx.symkey_dek)))
@@ -767,7 +782,7 @@ sign_file( strlist_t filenames, int deta
       goto leave;
 
     /* prepare iobufs */
-    if( multifile )  /* have list of filenames */
+    if( multifile || opt.files_are_digests)  /* have list of filenames */
        inp = NULL; /* we do it later */
     else {
       inp = iobuf_open(fname);
@@ -900,7 +915,7 @@ sign_file( strlist_t filenames, int deta
        gcry_md_enable (mfx.md, hash_for(sk));
     }
 
-    if( !multifile )
+    if( !multifile && !opt.files_are_digests )
        iobuf_push_filter( inp, md_filter, &mfx );
 
     if( detached && !encryptflag && !RFC1991 )
@@ -955,6 +970,8 @@ sign_file( strlist_t filenames, int deta
 
     write_status_begin_signing (mfx.md);
 
+    sigclass = opt.textmode && !outfile? 0x01 : 0x00;
+
     /* Setup the inner packet. */
     if( detached ) {
        if( multifile ) {
@@ -995,6 +1012,45 @@ sign_file( strlist_t filenames, int deta
            if( opt.verbose )
                putc( '\n', stderr );
        }
+       else if (opt.files_are_digests) {
+           byte *mdb, ts[5];
+           size_t mdlen;
+           const char *fp;
+           int c, d;
+
+           gcry_md_final(mfx.md);
+           /* this assumes gcry_md_read returns the same buffer */
+           mdb = gcry_md_read(mfx.md, opt.def_digest_algo);
+               mdlen = gcry_md_get_algo_dlen(opt.def_digest_algo);
+           if (strlen(fname) != mdlen * 2 + 11)
+               log_bug("digests must be %d + @ + 5 bytes\n", mdlen);
+           d = -1;
+           for (fp = fname ; *fp; ) {
+               c = *fp++;
+               if (c >= '0' && c <= '9')
+                   c -= '0';
+               else if (c >= 'a' && c <= 'f')
+                   c -= 'a' - 10;
+               else if (c >= 'A' && c <= 'F')
+                   c -= 'A' - 10;
+               else
+                   log_bug("filename is not hex\n");
+               if (d >= 0) {
+                   *mdb++ = d << 4 | c;
+                   c = -1;
+                   if (--mdlen == 0) {
+                       mdb = ts;
+                       if (*fp++ != '@')
+                           log_bug("missing time separator\n");
+                   }
+               }
+               d = c;
+           }
+           sigclass = ts[0];
+           if (sigclass != 0x00 && sigclass != 0x01)
+               log_bug("bad cipher class\n");
+           timestamp = buffer_to_u32(ts + 1);
+       }
        else {
            /* read, so that the filter can calculate the digest */
            while( iobuf_get(inp) != -1 )
@@ -1012,8 +1068,8 @@ sign_file( strlist_t filenames, int deta
 
     /* write the signatures */
     rc = write_signature_packets (sk_list, out, mfx.md,
-                                  opt.textmode && !outfile? 0x01 : 0x00,
-                                 0, duration, detached ? 'D':'S');
+                                  sigclass,
+                                 timestamp, duration, detached ? 'D':'S');
     if( rc )
         goto leave;
 
++++++ gnupg-2.0.10-tmpdir.diff -> gnupg-2.0.18-tmpdir.diff ++++++
--- gpg2/gnupg-2.0.10-tmpdir.diff       2009-11-13 15:52:40.000000000 +0100
+++ /mounts/work_src_done/STABLE/gpg2/gnupg-2.0.18-tmpdir.diff  2011-08-06 
22:24:10.000000000 +0200
@@ -1,9 +1,7 @@
-# create gpg-agent socket in TMPDIR
-Index: gnupg-2.0.13/agent/gpg-agent.c
-===================================================================
---- gnupg-2.0.13.orig/agent/gpg-agent.c        2009-07-20 12:12:06.000000000 
+0200
-+++ gnupg-2.0.13/agent/gpg-agent.c     2009-11-13 13:00:55.000000000 +0100
-@@ -960,6 +960,10 @@ main (int argc, char **argv )
+diff -rup gnupg-2.0.18.orig/agent/gpg-agent.c gnupg-2.0.18/agent/gpg-agent.c
+--- gnupg-2.0.18.orig/agent/gpg-agent.c        2011-08-04 10:57:02.000000000 
+0100
++++ gnupg-2.0.18/agent/gpg-agent.c     2011-08-06 21:01:32.000000000 +0100
+@@ -1002,6 +1002,10 @@ main (int argc, char **argv )
        gnupg_fd_t fd_ssh;
        pid_t pid;
  
@@ -14,7 +12,7 @@
        /* Remove the DISPLAY variable so that a pinentry does not
           default to a specific display.  There is still a default
           display when gpg-agent was started using --display or a
-@@ -971,13 +975,23 @@ main (int argc, char **argv )
+@@ -1013,13 +1017,23 @@ main (int argc, char **argv )
          unsetenv ("DISPLAY");
  #endif
  
@@ -27,13 +25,13 @@
 +      snprintf(tmp, len, "%s%s%s", tmp1, tmp1 && strlen(tmp1) > 0 ? "/" : "", 
tmp2);
  
        /* Create the sockets.  */
-       socket_name = create_socket_name 
+       socket_name = create_socket_name
 -        ("S.gpg-agent", "/tmp/gpg-XXXXXX/S.gpg-agent");
 -      if (opt.ssh_support)
 +        ("S.gpg-agent", tmp);
 +      if (opt.ssh_support) {
 +        snprintf(tmp, len, "%s%s%s.ssh", tmp1, tmp1 && strlen(tmp1) > 0 ? "/" 
: "", tmp2);
-       socket_name_ssh = create_socket_name 
+       socket_name_ssh = create_socket_name
 -          ("S.gpg-agent.ssh", "/tmp/gpg-XXXXXX/S.gpg-agent.ssh");
 +          ("S.gpg-agent.ssh", tmp);
 +      }

++++++ gnupg-2.0.17.tar.bz2 -> gnupg-2.0.18.tar.bz2 ++++++
++++ 83353 lines of diff (skipped)


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to