netpgp: added patch to build with -Werror and gcc-4.5.0.

This commit is contained in:
Juan RP 2010-05-04 01:20:57 +02:00
parent c0fb9c3805
commit 80364190f9
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,19 @@
--- src/netpgpverify/verify.c.orig 2010-05-04 01:00:46.490355473 +0200
+++ src/netpgpverify/verify.c 2010-03-14 00:30:41.000000000 +0100
@@ -569,6 +569,7 @@ typedef struct __ops_ptag_t {
* \see RFC4880 9.1
*/
typedef enum {
+ OPS_PKA_NOTHING = 0,
OPS_PKA_RSA = 1, /* RSA (Encrypt or Sign) */
OPS_PKA_RSA_ENCRYPT_ONLY = 2, /* RSA Encrypt-Only (deprecated -
* \see RFC4880 13.5) */
@@ -5551,7 +5550,7 @@ __ops_pubkey_free(__ops_pubkey_t *p)
free_BN(&p->key.elgamal.y);
break;
+ case OPS_PKA_NOTHING:
- case 0:
/* nothing to free */
break;

View file

@ -27,7 +27,6 @@ long_desc="
The other user's public key can be added to our keyring. The other
user will add our public key to their keyring."
CFLAGS="-Wno-error"
subpackages="libnetpgp libnetpgp-devel"
Add_dependency run glibc