search for: rand_add

Displaying 20 results from an estimated 39 matches for "rand_add".

2000 Jun 19
1
configure problem on UnixWare 7.1.1
...ocket -lcrypto 1>&5 configure:2571: openssl/rand.h: No such file or directory configure: failed program was: #line 2568 "configure" #include "confdefs.h" #include <string.h> #include <openssl/rand.h> int main(void) { char a[2048]; memset(a, 0, sizeof(a)); RAND_add(a, sizeof(a), sizeof(a)); return(RAND_status() <= 0); } configure:2582: gcc -o conftest -g -O2 -Wall -I/usr/local/include -I/usr/local/openssl/include -L/usr/local/lib -L/usr/local/openssl/lib -L/usr/local/openssl conftest.c -lsocket -lnsl -lz -lgen -lsocket -lcrypto 1>&5 configur...
2002 Jul 22
1
impedence mismatch between openssh 3.4p1 and openssl 0.9.6d on SCO OpenServer 3.2 5.0.6
Hi, I have been trying to build openssh 3.4p1 on SCO Open Server xxx It requires the libcrypto.a library produced by OpenSSL. So, I downloaded and installed OpenSSL 0.9.6d. As part of the configure process for OpenSSH, 'configure' checks for version of libcrypto.a with RAND_add(). RAND_add is defined in rand_lib.c and during the build of OpenSSH, I can see that rand_lib.c is compiled and linked into libcrypto.a However, when I run configure for OpenSSH, it complains: configure: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) *** Do a...
2002 Jun 21
4
configure problem --- Can't find recent OpenSSL libcrypto
...port LIBRARY_PATH as some one mentioned in the mailing list. No luck yet. configure:8285: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) *** I am not a programmer but after looking details in config.log I found it is giving this error when it looks for symbol 'RAND_add'. But when I do nm on libcrypto I get like this. /local/santanu/pkg/ssl/lib> nm libcrypto.a | grep -i RAND_add [27] | 0| 0|FUNC |GLOB |0 |UNDEF |RAND_add [3] | 248| 1068|FUNC |LOCL |0 |2 |ssleay_rand_add [25] | 0|...
2001 Jun 18
0
Building on Solaris 8 - RAND_add (etc) errors
...nftest -g -I/usr/local/include -I/usr/include -I/usr/local/ssl/include -L/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/lib -R/usr/local/ssl/lib conftest.c -lz -lsocket -lnsl -lgen -lcrypto 1>&5 Undefined first referenced symbol in file RAND_add conftest.o RAND_status conftest.o ld: fatal: Symbol referencing errors. No output written to conftest configure: failed program was: #line 4397 "configure" #include "confdefs.h" The solution to this problem that I found is to...
2005 May 17
0
Building openssh4.0p1 on AIX 5.3 with openssl 0.9.7g and tcp_wrapper
...de --with-libs=-L/opt/freeware/lib Excerpts from config.log +14369 configure:13739: cc -o conftest -g -I/opt/freeware/ssl -I/opt/freeware/i nclude -L/opt/freeware/ssl -L/opt/freeware/include conftest.c -lcrypto -lz -L /opt/freeware/lib >&5 +14370 ld: 0711-317 ERROR: Undefined symbol: .RAND_add +14371 ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more inform ation. +14372 configure:13745: $? = 8 +14373 configure: failed program was: +14532 | char RAND_add (); +14533 | int +14534 | main () +14535 | { +14536 | RAND_add (); +14537 | ; +14538 | return 0; +14539...
2002 Apr 03
2
cross compilation?
...+721,21 @@ # Basic test to check for compatible version and correct linking # *does not* test for RSA - that comes later. - AC_TRY_RUN( + AC_TRY_LINK( [ -#include <string.h> -#include <openssl/rand.h> -int main(void) -{ - char a[2048]; - memset(a, 0, sizeof(a)); - RAND_add(a, sizeof(a), sizeof(a)); - return(RAND_status() <= 0); -} + #include <string.h> + #include <openssl/rand.h> + ], + [ + char a[2048]; + memset(a, 0, sizeof(a)); + RAND_add(a, sizeof(a), sizeof(a)); + return(RAND_status() <= 0); ], [ found_cryp...
2002 Nov 26
3
Solaris 8, Can't find recent OpenSSL libcrypto
I have probably trivial problem in OpenSSH installation, but do not see it - could you help, please ? The libcrypto has been installed. caroubier% ls -l /usr/local/ssl/lib/libcrypto.a -rw-r--r-- 1 root other 2778744 Nov 19 17:53 /usr/local/ssl/lib/libcrypto.a But the openssh stops with Can't find recent OpenSSL libcrypto. Thank you very much in advance, Elisabeth Porteneuve --
2000 Oct 02
1
OpenSSH 2.2.0p1 on Solaris 2.7 fails to compile
.../include -L/usr/loc al/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib -L/opt/openssl/lib -L/opt/openssl -R/opt/openssl/ lib -R/opt/openssl conftest.c -ldl -lsocket -lnsl -lz -lpam -lcrypto 1>&5 configure: In function `main': configure:2856: warning: implicit declaration of function `RAND_add' configure:2857: warning: implicit declaration of function `RAND_status' Undefined first referenced symbol in file RAND_add /var/tmp/ccHZaWXy1.o RAND_status /var/tmp/ccHZaWXy1.o ld: fatal:...
2002 Jan 22
4
ssh-rand-helper
...opy gathering. - would it be desirable to make it possible for ssh-rand-helper to fall back to external commands if PRNGD cannot be reached, instead of choosing one or the other at compile time? - When using PRNGD, the program gets 48 bytes of entropy from PRNGD, stirs it into OpenSSL's RAND_add(), and outputs 48 bytes of pseudorandom bytes based on this entropy. Does this present any advantage over just dumping the 48 bytes of entropy received from PRNGD directly? The semantics I'm envisioning here: Define USE_PRNGD, USE_CMDS, or both. Case 1: USE_PRNGD && U...
2001 Aug 08
3
openssh-2.9p2 Config - undefined references
...9;: dso_dlfcn.o(.text+0x353): undefined reference to `dlsym' configure: failed program was: #line 4419 "configure" #include "confdefs.h" #include <string.h> #include <openssl/rand.h> int main(void) { char a[2048]; memset(a, 0, sizeof(a)); RAND_add(a, sizeof(a), sizeof(a)); return(RAND_status() <= 0); } I use it with openssl-engine-0.9.6b and openssl-0.9.6b installed to /opt/openssl and /usr/local/ssl (ln -s). When running the make test option of openssl, it reports no problems (which kind of indicates the problem is not with op...
2000 Apr 30
2
Problem finding openssl in openssh-2.0.0test1
...in port forwarding from openssh-1.2.3 were fixed. The configure script had trouble finding the openssl package, even though I had it installed in the standard place (/usr/local/ssl). I investigated and found that the failed test compile was caused by two nonfatal compiler warnings that memset and RAND_add were being implicitly defined. As a hackaround I inserted #include <string.h> #include <openssl/rand.h> just before #include <openssl/rsa.h> #include <openssl/bn.h> #include <openssl/sha.h> in the test program. configure succeeded, and so did the subsequent compil...
2000 May 10
4
openssl w/ rsaref openssh won't configure
...de "confdefs.h" #include <string.h> #include <openssl/rand.h> #include <openssl/rsa.h> #include <openssl/bn.h> #include <openssl/sha.h> int main(void) { RSA *key; char a[2048],b[2048];; memset(a, 0, sizeof(a));memset(b, 0, sizeof(b)); RAND_add(a, sizeof(a), sizeof(a)); key=RSA_generate_key(32,3,NULL,NULL); if (key==NULL) return(1); return(-1==RSA_private_decrypt(RSA_size(key),a,b,key,RSA_NO_PADDING)); }
2000 Jun 15
1
problem in entropy.c if no getrusage
entropy.c assumes RUSAGE_SELF and RUSAGE_CHILDREN *** entropy.c.orig Thu Jun 15 13:57:28 2000 --- entropy.c Thu Jun 15 13:58:25 2000 *************** *** 201,207 **** --- 201,209 ---- total_entropy_estimate += stir_gettimeofday(1.0); total_entropy_estimate += stir_clock(0.2); + #ifdef HAVE_GETRUSAGE total_entropy_estimate += stir_rusage(RUSAGE_SELF, 2.0); + #endif
2002 Mar 29
1
Two patches for OpenSSH 3.1p1 (fwd)
...******** *** 389,398 **** debug3("Time elapsed: %d msec", msec_elapsed); ! if (waitpid(pid, &status, 0) == -1) { error("Couldn't wait for child '%s' completion: %s", src->cmdstring, strerror(errno)); return 0.0; } RAND_add(&status, sizeof(&status), 0.0); --- 389,406 ---- debug3("Time elapsed: %d msec", msec_elapsed); ! { ! int code; ! ! while ((code = waitpid(pid, &status, 0)) == -1 && errno == EINTR) ! ; ! ! if (code < 0) ! { erro...
2006 Mar 17
1
[PATCH] OpenSSL RNG initialization
...*/ + if (RAND_status() == 1) + return; + + /* + * Else, try to seed it. Unfortunately we don't have + * /dev/urandom, so we can only use weak random sources. + */ + while (RAND_status() != 1) { + if (gettimeofday(&tv, NULL) < 0) + i_fatal("gettimeofday() failed: %m"); + RAND_add((const void *)&tv, sizeof(tv), + (double)sizeof(tv) / 2); +#ifdef HAVE_GETRUSAGE + if (getrusage(RUSAGE_SELF, &ru) < 0) + i_fatal("getrusage() failed: %m"); + RAND_add((const void *)&ru, sizeof(ru), + (double)sizeof(ru) / 2); +#endif + + if (counter++ > 100) +...
2001 Feb 05
2
Could not find working SSLeay?
I'm installing openssl 0.9.5a and openssh 2.3.0p1 on an Ultra 5 running Solaris 8 with the latest cluster patch. Openssl installed without any problems. When I do a configure for openssh I get: Checking for OpenSSL directory. . . configure: error: Could not find working SSLeay / OpenSSL libraries, please install I've reinstalled openssl and everything is there. As a note I've
2000 Sep 26
0
./configure stops: openssl prob
...rypto 1>&5 /usr/bin/ld: cannot find -lpam collect2: ld returned 1 exit status configure: failed program was: #line 2848 "configure" #include "confdefs.h" #include <string.h> #include <openssl/rand.h> int main(void) { char a[2048]; memset(a, 0, sizeof(a)); RAND_add(a, sizeof(a), sizeof(a)); return(RAND_status() <= 0); } configure:2862: gcc -o conftest -I/usr/local/ssl/include -Wall -I/usr/local/ssl/include -static -L/lib/security -L/lib -L/usr/local/ssl/lib -L/lib -L/lib/security -L/lib -L/usr/local/ssl -L/lib -L/usr/local/ssl/lib -L/usr/local/ssl co...
2001 Jun 07
2
Patch to enable multiple possible sources of entropy
...r - * or PRNGD/EGD - */ - void - seed_rng(void) - { - unsigned char buf[32]; - - debug("Seeding random number generator"); - - if (!get_random_bytes(buf, sizeof(buf))) { - if (!RAND_status()) - fatal("Entropy collection failed and entropy exhausted"); - } else { - RAND_add(buf, sizeof(buf), sizeof(buf)); - } - - memset(buf, '\0', sizeof(buf)); - } - - void - init_rng(void) - { - check_openssl_version(); - } - - #else /* defined(USE_PRNGD) || defined(RANDOM_POOL) */ /* * FIXME: proper entropy estimations. All current values are guesses * FIXM...
2001 Jun 06
2
Failure to compile OpenSSH.
...al/lib conftest.c -lz -lsocket -lnsl -lgen -lcrypto 1>&5 configure: failed program was: #line 4397 "configure" #include "confdefs.h" #include <string.h> #include <openssl/rand.h> int main(void) { char a[2048]; memset(a, 0, sizeof(a)); RAND_add(a, sizeof(a), sizeof(a)); return(RAND_status() <= 0); } (3) configure:4354: checking for OpenSSL directory configure:4411: cc -o conftest -g -I/usr/local/include conftest.c -lz -lgen -lcrypto 1>&5 cc-1005 cc: ERROR File = configure, Line = 4400 The source file "openssl/r...
2018 Nov 19
2
[PATCH] openssl-compat: Test for OpenSSL_add_all_algorithms before using.
OpenSSL 1.1.0 has deprecated this function. --- configure.ac | 1 + openbsd-compat/openssl-compat.c | 2 ++ openbsd-compat/openssl-compat.h | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 3f7fe2cd..db2aade8 100644 --- a/configure.ac +++ b/configure.ac @@ -2710,6 +2710,7 @@ if test "x$openssl" = "xyes" ; then ])