summaryrefslogtreecommitdiff
path: root/ssh-keysign.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-03-15 11:36:18 +1100
committerDamien Miller <djm@mindrot.org>2003-03-15 11:36:18 +1100
commited33d3b4d229b0e815f43d8a3192047ef161dcd7 (patch)
tree26aadf53af8d7550a2e9dd8e7252d1aedca2424f /ssh-keysign.c
parentc1365e19b0f5ae8d05b697cd40d1fb4f664112b6 (diff)
- (djm) OpenBSD CVS Sync
- markus@cvs.openbsd.org 2003/03/13 11:42:19 [authfile.c ssh-keysign.c] move RSA_blinding_on to generic key load method
Diffstat (limited to 'ssh-keysign.c')
-rw-r--r--ssh-keysign.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/ssh-keysign.c b/ssh-keysign.c
index 46028ae51..26c8faad2 100644
--- a/ssh-keysign.c
+++ b/ssh-keysign.c
@@ -22,7 +22,7 @@
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24#include "includes.h" 24#include "includes.h"
25RCSID("$OpenBSD: ssh-keysign.c,v 1.9 2002/12/19 00:07:02 djm Exp $"); 25RCSID("$OpenBSD: ssh-keysign.c,v 1.10 2003/03/13 11:42:19 markus Exp $");
26 26
27#include <openssl/evp.h> 27#include <openssl/evp.h>
28#include <openssl/rand.h> 28#include <openssl/rand.h>
@@ -192,13 +192,6 @@ main(int argc, char **argv)
192 keys[i] = key_load_private_pem(key_fd[i], KEY_UNSPEC, 192 keys[i] = key_load_private_pem(key_fd[i], KEY_UNSPEC,
193 NULL, NULL); 193 NULL, NULL);
194 close(key_fd[i]); 194 close(key_fd[i]);
195 if (keys[i] != NULL && keys[i]->type == KEY_RSA) {
196 if (RSA_blinding_on(keys[i]->rsa, NULL) != 1) {
197 error("RSA_blinding_on failed");
198 key_free(keys[i]);
199 keys[i] = NULL;
200 }
201 }
202 if (keys[i] != NULL) 195 if (keys[i] != NULL)
203 found = 1; 196 found = 1;
204 } 197 }