rpms/crypto-utils/F-10 keyutil.c,1.13,1.14
Elio Maldonado
emaldonado at fedoraproject.org
Tue Feb 17 22:10:34 UTC 2009
- Previous message (by thread): rpms/kernel/devel config-generic, 1.239, 1.240 kernel.spec, 1.1304, 1.1305
- Next message (by thread): rpms/kernel/devel linux-2.6-ext4-ENOSPC-debug.patch, NONE, 1.1.2.2 linux-2.6-ext4-write-cyclic-fix.patch, NONE, 1.1.2.2 linux-2.6-iommu-write-buf.patch, NONE, 1.1.2.2 patch-2.6.29-rc5.bz2.sign, NONE, 1.1.2.2 xen.pvops.patch, NONE, 1.1.2.1 xen.pvops.post.patch, NONE, 1.1.2.1 xen.pvops.pre.patch, NONE, 1.1.2.1 config-generic, 1.238, 1.238.6.1 config-powerpc-generic, 1.33, 1.33.6.1 config-x86-generic, 1.68, 1.68.6.1 config-x86_64-generic, 1.68, 1.68.2.1 drm-intel-next.patch, 1.4, 1.4.6.1 kernel.spec, 1.1294, 1.1294.2.1 sources, 1.976, 1.976.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: emaldonado
Update of /cvs/extras/rpms/crypto-utils/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6510
Modified Files:
keyutil.c
Log Message:
Moved test for null subject ahead of key genration and fixed a missing ! when testing whether base64 encoding succeded
Index: keyutil.c
===================================================================
RCS file: /cvs/extras/rpms/crypto-utils/F-10/keyutil.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- keyutil.c 29 Jan 2009 22:54:38 -0000 1.13
+++ keyutil.c 17 Feb 2009 22:10:03 -0000 1.14
@@ -1304,8 +1304,10 @@
do {
b64 = BTOA_ConvertItemToAscii(src);
- if (b64)
- break;
+ if (!b64) {
+ rc = 255;
+ GEN_BREAK(rv);
+ }
total = PL_strlen(b64);
@@ -1468,6 +1470,12 @@
* This is a certificate signing request for a new cert,
* will generate a key pair
*/
+
+ if (!subjectstr) {
+ SECU_PrintError(progName, "subject string was NULL\n");
+ rv = 255;
+ goto shutdown;
+ }
slot = PK11_GetInternalKeySlot(); /* PK11_GetInternalSlot() ? */
privkey = GenerateRSAPrivateKey(keytype, slot,
@@ -1480,11 +1488,6 @@
goto shutdown;
}
- if (!subjectstr) {
- SECU_PrintError(progName, "subject string was NULL\n");
- rv = 255;
- goto shutdown;
- }
subject = CERT_AsciiToName((char *)subjectstr);
if (!subject) {
SECU_PrintError(progName,
- Previous message (by thread): rpms/kernel/devel config-generic, 1.239, 1.240 kernel.spec, 1.1304, 1.1305
- Next message (by thread): rpms/kernel/devel linux-2.6-ext4-ENOSPC-debug.patch, NONE, 1.1.2.2 linux-2.6-ext4-write-cyclic-fix.patch, NONE, 1.1.2.2 linux-2.6-iommu-write-buf.patch, NONE, 1.1.2.2 patch-2.6.29-rc5.bz2.sign, NONE, 1.1.2.2 xen.pvops.patch, NONE, 1.1.2.1 xen.pvops.post.patch, NONE, 1.1.2.1 xen.pvops.pre.patch, NONE, 1.1.2.1 config-generic, 1.238, 1.238.6.1 config-powerpc-generic, 1.33, 1.33.6.1 config-x86-generic, 1.68, 1.68.6.1 config-x86_64-generic, 1.68, 1.68.2.1 drm-intel-next.patch, 1.4, 1.4.6.1 kernel.spec, 1.1294, 1.1294.2.1 sources, 1.976, 1.976.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list