07-15-2011
When I try to link to libcrypto.a, it complains that RSA_generate_key and DH_generate_parameters are undefined references. I am including "-lssl."
If this had worked, I would have next tried to link in libssl, statically, but it didn't because the ssl libraries don't contain those two parameters.
Any idea what library I can link in to define them?
9 More Discussions You Might Find Interesting
1. Programming
Hi
I'm getting
ld: fatal: option -h and building a dynamic executable are incompatible
ld: fatal: Flags processing errors
When I run
ld -shared -L/usr/dt/lib -lDtSvc -o builtin.so Workspace.o
after running
gcc -fPIC -I/usr/X11R6/include -I/usr/dt/include -c Workspace.c
I'm... (6 Replies)
Discussion started by: laho
6 Replies
2. Programming
I need to load a dynamic library from a statically linked program. Is there a way without recompiling my program.
when i try to do that my program just crashes.
If not possible, how can I avoid crashing the program when i try to load the dynamic lib, again without recompiling.
If my... (1 Reply)
Discussion started by: disclaimer
1 Replies
3. Programming
how can i do static compilation in cc and -lldap
i have system defined and user defined header file.
Can any one suggest any site where from i can get some information about static and dynamic compilation.
Thankx (1 Reply)
Discussion started by: bhakti
1 Replies
4. UNIX for Dummies Questions & Answers
how would i link 2 files together?
is it the same as copying? (1 Reply)
Discussion started by: trob
1 Replies
5. Solaris
I use Solaris 10, compiling with a custom g++ (3.4.6) and GNU binutils (2.17). Things have gone well on two different systems, but when I tried moving to a third, it all fell over. Basically, it is now using the CC linker, but I need to use options not available to it. I believe I have found the... (0 Replies)
Discussion started by: Elric of Grans
0 Replies
6. Programming
I am attempting to port a program from OS X to Linux. It's C++ & Qt Creator and I did the original Windows to OS X port, so I tried to make it as POSIX-compliant as possible; the OS X port works well, and the Linux port builds and starts (it's on Ubuntu 9.10) but has some issues running.
The... (2 Replies)
Discussion started by: Hodapp87
2 Replies
7. Solaris
Hi Can anyone tell me the use of libcrypto.so.0.9.7 ? I know it is used for SSH. Also is there a way to look into the content of these jars?
Also is there a way to uncompress the same?
i tried
# uncompress libcrypto.so.0.9.7
libcrypto.so.0.9.7.Z: No such file or directory
# jar xvf... (6 Replies)
Discussion started by: flinders1323
6 Replies
8. UNIX for Advanced & Expert Users
Hi,
I've installed curl with all despondency but when I try to start it I get:
root@xxx> curl
ld.so.1: curl: fatal: libcrypto.so.1.0.0: open failed: No such file or directory
Killed
Looks like I have to change/make symlinks but I don't know how/where.
Any idia?
---------- Post... (3 Replies)
Discussion started by: mehrdad68
3 Replies
9. AIX
I want to create a shared lib with certain libs statically linked to it. I can generate a fully shared lib as follows:
gcc -maix64 -DHAVE_CONFIG_H -I. -I./src -DHAVE_OPENSSL -I/usr/include/openssl -I/usr/include -I/usr/include/apr-1 -D_LARGEFILE64_SOURCE -I/usr/java8_64/include -shared -o... (0 Replies)
Discussion started by: amandeepgautam
0 Replies
LEARN ABOUT OPENDARWIN
dh_generate_parameters
DH_generate_parameters(3) OpenSSL DH_generate_parameters(3)
NAME
DH_generate_parameters, DH_check - generate and check Diffie-Hellman parameters
SYNOPSIS
#include <openssl/dh.h>
DH *DH_generate_parameters(int prime_len, int generator,
void (*callback)(int, int, void *), void *cb_arg);
int DH_check(DH *dh, int *codes);
DESCRIPTION
DH_generate_parameters() generates Diffie-Hellman parameters that can be shared among a group of users, and returns them in a newly allo-
cated DH structure. The pseudo-random number generator must be seeded prior to calling DH_generate_parameters().
prime_len is the length in bits of the safe prime to be generated. generator is a small number > 1, typically 2 or 5.
A callback function may be used to provide feedback about the progress of the key generation. If callback is not NULL, it will be called as
described in BN_generate_prime(3) while a random prime number is generated, and when a prime has been found, callback(3, 0, cb_arg) is
called.
DH_check() validates Diffie-Hellman parameters. It checks that p is a safe prime, and that g is a suitable generator. In the case of an
error, the bit flags DH_CHECK_P_NOT_SAFE_PRIME or DH_NOT_SUITABLE_GENERATOR are set in *codes. DH_UNABLE_TO_CHECK_GENERATOR is set if the
generator cannot be checked, i.e. it does not equal 2 or 5.
RETURN VALUES
DH_generate_parameters() returns a pointer to the DH structure, or NULL if the parameter generation fails. The error codes can be obtained
by ERR_get_error(3).
DH_check() returns 1 if the check could be performed, 0 otherwise.
NOTES
DH_generate_parameters() may run for several hours before finding a suitable prime.
The parameters generated by DH_generate_parameters() are not to be used in signature schemes.
BUGS
If generator is not 2 or 5, dh->g=generator is not a usable generator.
SEE ALSO
dh(3), ERR_get_error(3), rand(3), DH_free(3)
HISTORY
DH_check() is available in all versions of SSLeay and OpenSSL. The cb_arg argument to DH_generate_parameters() was added in SSLeay 0.9.0.
In versions before OpenSSL 0.9.5, DH_CHECK_P_NOT_STRONG_PRIME is used instead of DH_CHECK_P_NOT_SAFE_PRIME.
0.9.7d 2003-11-20 DH_generate_parameters(3)