2010-08-24 17:31:11 +02:00
|
|
|
Index: openssh-5.6p1/ssh-add.c
|
2010-03-26 16:29:14 +01:00
|
|
|
===================================================================
|
2010-08-24 17:31:11 +02:00
|
|
|
--- openssh-5.6p1.orig/ssh-add.c
|
|
|
|
+++ openssh-5.6p1/ssh-add.c
|
2008-04-09 22:21:23 +02:00
|
|
|
@@ -43,6 +43,7 @@
|
2007-01-07 17:26:05 +01:00
|
|
|
|
|
|
|
#include <openssl/evp.h>
|
2008-04-09 22:21:23 +02:00
|
|
|
#include "openbsd-compat/openssl-compat.h"
|
2007-01-07 17:26:05 +01:00
|
|
|
+#include <openssl/engine.h>
|
|
|
|
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <pwd.h>
|
2010-08-24 17:31:11 +02:00
|
|
|
@@ -374,6 +375,10 @@ main(int argc, char **argv)
|
2007-01-07 17:26:05 +01:00
|
|
|
|
|
|
|
SSLeay_add_all_algorithms();
|
|
|
|
|
|
|
|
+ /* Init available hardware crypto engines. */
|
|
|
|
+ ENGINE_load_builtin_engines();
|
|
|
|
+ ENGINE_register_all_complete();
|
|
|
|
+
|
|
|
|
/* At first, get a connection to the authentication agent. */
|
|
|
|
ac = ssh_get_authentication_connection();
|
|
|
|
if (ac == NULL) {
|
2010-08-24 17:31:11 +02:00
|
|
|
Index: openssh-5.6p1/ssh-agent.c
|
2010-03-26 16:29:14 +01:00
|
|
|
===================================================================
|
2010-08-24 17:31:11 +02:00
|
|
|
--- openssh-5.6p1.orig/ssh-agent.c
|
|
|
|
+++ openssh-5.6p1/ssh-agent.c
|
2008-04-09 22:21:23 +02:00
|
|
|
@@ -52,6 +52,7 @@
|
2007-01-07 17:26:05 +01:00
|
|
|
#include <openssl/evp.h>
|
|
|
|
#include <openssl/md5.h>
|
2008-04-09 22:21:23 +02:00
|
|
|
#include "openbsd-compat/openssl-compat.h"
|
2007-01-07 17:26:05 +01:00
|
|
|
+#include <openssl/engine.h>
|
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
#include <fcntl.h>
|
2010-08-24 17:31:11 +02:00
|
|
|
@@ -1094,6 +1095,10 @@ main(int ac, char **av)
|
2007-01-07 17:26:05 +01:00
|
|
|
|
|
|
|
SSLeay_add_all_algorithms();
|
|
|
|
|
|
|
|
+ /* Init available hardware crypto engines. */
|
|
|
|
+ ENGINE_load_builtin_engines();
|
|
|
|
+ ENGINE_register_all_complete();
|
|
|
|
+
|
|
|
|
__progname = ssh_get_progname(av[0]);
|
|
|
|
init_rng();
|
|
|
|
seed_rng();
|
2010-08-24 17:31:11 +02:00
|
|
|
Index: openssh-5.6p1/ssh-keygen.c
|
2010-03-26 16:29:14 +01:00
|
|
|
===================================================================
|
2010-08-24 17:31:11 +02:00
|
|
|
--- openssh-5.6p1.orig/ssh-keygen.c
|
|
|
|
+++ openssh-5.6p1/ssh-keygen.c
|
2008-04-09 22:21:23 +02:00
|
|
|
@@ -22,6 +22,7 @@
|
2007-01-07 17:26:05 +01:00
|
|
|
#include <openssl/evp.h>
|
|
|
|
#include <openssl/pem.h>
|
2008-04-09 22:21:23 +02:00
|
|
|
#include "openbsd-compat/openssl-compat.h"
|
2007-01-07 17:26:05 +01:00
|
|
|
+#include <openssl/engine.h>
|
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
#include <fcntl.h>
|
2010-08-24 17:31:11 +02:00
|
|
|
@@ -1782,6 +1783,11 @@ main(int argc, char **argv)
|
2007-03-15 01:56:27 +01:00
|
|
|
__progname = ssh_get_progname(argv[0]);
|
2007-01-07 17:26:05 +01:00
|
|
|
|
|
|
|
SSLeay_add_all_algorithms();
|
|
|
|
+
|
|
|
|
+ /* Init available hardware crypto engines. */
|
|
|
|
+ ENGINE_load_builtin_engines();
|
|
|
|
+ ENGINE_register_all_complete();
|
|
|
|
+
|
2007-03-15 01:56:27 +01:00
|
|
|
log_init(argv[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1);
|
2007-01-07 17:26:05 +01:00
|
|
|
|
|
|
|
init_rng();
|
2010-08-24 17:31:11 +02:00
|
|
|
Index: openssh-5.6p1/ssh-keysign.c
|
2010-03-26 16:29:14 +01:00
|
|
|
===================================================================
|
2010-08-24 17:31:11 +02:00
|
|
|
--- openssh-5.6p1.orig/ssh-keysign.c
|
|
|
|
+++ openssh-5.6p1/ssh-keysign.c
|
2007-01-07 17:26:05 +01:00
|
|
|
@@ -38,6 +38,7 @@
|
|
|
|
#include <openssl/evp.h>
|
|
|
|
#include <openssl/rand.h>
|
|
|
|
#include <openssl/rsa.h>
|
|
|
|
+#include <openssl/engine.h>
|
|
|
|
|
|
|
|
#include "xmalloc.h"
|
|
|
|
#include "log.h"
|
2010-03-26 16:29:14 +01:00
|
|
|
@@ -195,6 +196,11 @@ main(int argc, char **argv)
|
2007-01-07 17:26:05 +01:00
|
|
|
fatal("could not open any host key");
|
|
|
|
|
|
|
|
SSLeay_add_all_algorithms();
|
|
|
|
+
|
|
|
|
+ /* Init available hardware crypto engines. */
|
|
|
|
+ ENGINE_load_builtin_engines();
|
|
|
|
+ ENGINE_register_all_complete();
|
|
|
|
+
|
|
|
|
for (i = 0; i < 256; i++)
|
|
|
|
rnd[i] = arc4random();
|
|
|
|
RAND_seed(rnd, sizeof(rnd));
|
2010-08-24 17:31:11 +02:00
|
|
|
Index: openssh-5.6p1/ssh.c
|
2010-03-26 16:29:14 +01:00
|
|
|
===================================================================
|
2010-08-24 17:31:11 +02:00
|
|
|
--- openssh-5.6p1.orig/ssh.c
|
|
|
|
+++ openssh-5.6p1/ssh.c
|
2010-03-26 16:29:14 +01:00
|
|
|
@@ -74,6 +74,7 @@
|
2007-01-07 17:26:05 +01:00
|
|
|
#include <openssl/err.h>
|
2008-04-09 22:21:23 +02:00
|
|
|
#include "openbsd-compat/openssl-compat.h"
|
2008-07-25 04:29:14 +02:00
|
|
|
#include "openbsd-compat/sys-queue.h"
|
2007-01-07 17:26:05 +01:00
|
|
|
+#include <openssl/engine.h>
|
|
|
|
|
|
|
|
#include "xmalloc.h"
|
|
|
|
#include "ssh.h"
|
2010-08-24 17:31:11 +02:00
|
|
|
@@ -602,6 +603,10 @@ main(int ac, char **av)
|
2007-01-07 17:26:05 +01:00
|
|
|
SSLeay_add_all_algorithms();
|
|
|
|
ERR_load_crypto_strings();
|
|
|
|
|
|
|
|
+ /* Init available hardware crypto engines. */
|
|
|
|
+ ENGINE_load_builtin_engines();
|
|
|
|
+ ENGINE_register_all_complete();
|
|
|
|
+
|
|
|
|
/* Initialize the command to execute on remote host. */
|
|
|
|
buffer_init(&command);
|
|
|
|
|
2010-08-24 17:31:11 +02:00
|
|
|
Index: openssh-5.6p1/sshd.c
|
2010-03-26 16:29:14 +01:00
|
|
|
===================================================================
|
2010-08-24 17:31:11 +02:00
|
|
|
--- openssh-5.6p1.orig/sshd.c
|
|
|
|
+++ openssh-5.6p1/sshd.c
|
2008-07-25 04:29:14 +02:00
|
|
|
@@ -77,6 +77,7 @@
|
2007-01-07 17:26:05 +01:00
|
|
|
#include <openssl/md5.h>
|
|
|
|
#include <openssl/rand.h>
|
2008-04-09 22:21:23 +02:00
|
|
|
#include "openbsd-compat/openssl-compat.h"
|
2007-01-07 17:26:05 +01:00
|
|
|
+#include <openssl/engine.h>
|
2008-04-09 22:21:23 +02:00
|
|
|
|
2007-01-07 17:26:05 +01:00
|
|
|
#ifdef HAVE_SECUREWARE
|
|
|
|
#include <sys/security.h>
|
2010-08-24 17:31:11 +02:00
|
|
|
@@ -1471,6 +1472,10 @@ main(int ac, char **av)
|
2007-01-07 17:26:05 +01:00
|
|
|
|
|
|
|
SSLeay_add_all_algorithms();
|
|
|
|
|
|
|
|
+ /* Init available hardware crypto engines. */
|
|
|
|
+ ENGINE_load_builtin_engines();
|
|
|
|
+ ENGINE_register_all_complete();
|
|
|
|
+
|
|
|
|
/*
|
|
|
|
* Force logging to stderr until we have loaded the private host
|
|
|
|
* key (unless started from inetd)
|