RE: Output file is created on incorrect passphrase for decryption

2007-11-05 Thread Saju
Why don't you the check completion code from openssl and delete the 'bad' RPM ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mathew Sent: Monday, November 05, 2007 4:12 PM To: openssl-users@openssl.org Subject: Output file is created on incorrect passph

Output file is created on incorrect passphrase for decryption

2007-11-05 Thread Mathew
So I'm using openssl to encrypt and decrypt rpms for safe distribution. I've create a C program which basically searches the file system and decrypts matching encrypted rpms. Problem I'm running into is that in the event the user creates a similar matching filename, the openssl decryption f

Re: static linking against the openssl toolkit

2007-11-05 Thread Ariel Salomon
you are linking the libs in the wrong order; should be "-lssl -lcrypto" because libssl depends on libcrypto. - Ariel Dan Clusin wrote: LIBRARY_PATHS = -L$(OBVIUS_LIBS)/expat/lib/ -lexpat -L$(OBVIUS_LIBS)/gsasl/lib/ -lgsasl \ -L$(OBVIUS_LIBS)/openssl/lib/ -lcrypto -lssl -lpthread

Re: static linking against the openssl toolkit

2007-11-05 Thread Markus Mayer
On Monday 05 November 2007, Dr. Stephen Henson wrote: 8<-- > That looks like the application isn't being linked with the correct version > of OpenSSL. Those undefined functions were macros in previous versions of > OpenSSL but became real functions later. > > So if you compile against new heade

Re: static linking against the openssl toolkit

2007-11-05 Thread Dr. Stephen Henson
On Mon, Nov 05, 2007, Markus Mayer wrote: > I have the same problem, however it's clear to me that the problem lies in > the > build of openssl. For what ever reason, parts are not fully built. I too am > searching for the cause of this problem, however without success. I have > build OpenS

RE: static linking against the openssl toolkit

2007-11-05 Thread Dan Clusin
Here is what I did: I first bega by configuring the OpenSSL toolkit from source, supplying configure with the following arguments: ./Configure --prefix==/home/dclusin/Development/obvius_libs/openssl linux-generic32 -DL_ENDIAN -static I then edited the Makefile in OpenSSL's source directory to use

Re: static linking against the openssl toolkit

2007-11-05 Thread Markus Mayer
I have the same problem, however it's clear to me that the problem lies in the build of openssl. For what ever reason, parts are not fully built. I too am searching for the cause of this problem, however without success. I have build OpenSSL with the config: ./config --prefix=/usr/local/opens

RE: bad decrypt in EVP_CipherFinal_ex

2007-11-05 Thread David Schwartz
> I wonder why my buffer of iv is overwritten. What can I use it for? To continue encrypting or decrypting. > If the overwritten iv is useless, why doesn't the library make a > clone of it > for its own purposes? It's not useless, it's the next IV to use. > I am not sure about overwriting the

Re: static linking against the openssl toolkit

2007-11-05 Thread Gisle Vanem
"Dan Clusin" <[EMAIL PROTECTED]> wrote: I am getting the undefined references to the OpenSSL functions in the link stage similar to the above posting. (don't use HTML while posting to mailing-lists). What does the command-line (link command) looks like? Remember the order of libs are importan

RE: static linking against the openssl toolkit

2007-11-05 Thread Jeremy Farrell
From: Dan Clusin Sent: Monday, November 05, 2007 4:24 PM I have run into a problem similar to one that has been posted here before, but I did not see any solutions to it. http://www.mail-archive.com/openssl-users@openssl.org/msg40020.html

static linking against the openssl toolkit

2007-11-05 Thread Dan Clusin
All, I have run into a problem similar to one that has been posted here before, but I did not see any solutions to it. http://www.mail-archive.com/openssl-users@openssl.org/msg40020.html More specifically my problem is the following: I am getting the undefined references to the Open

Re: ca client - failed to update database, TXT_DB error number 2

2007-11-05 Thread Bernhard Froehlich
Frank Garber schrieb: Hi Jorge, I got considerably farther and generated the server key, but am now having a problem with the client key. I'm getting this error: failed to update database TXT_DB error number 2 Any thoughts? This error is defined as DB_ERROR_INDEX_CLASH in txt_db.h. You are

Re: bad decrypt in EVP_CipherFinal_ex

2007-11-05 Thread MaxAndr
Jorge Fernandez-3 wrote: > > Make sure you use the same iv that you used when encrypting. You should > make > a copy of the iv vector, since the encrypting process overwrites the > buffer > of the iv that you pass. > Hi! I wonder why my buffer of iv is overwritten. What can I use it for? If t

ca client - failed to update database, TXT_DB error number 2

2007-11-05 Thread Frank Garber
Hi Jorge, I got considerably farther and generated the server key, but am now having a problem with the client key. I'm getting this error: failed to update database TXT_DB error number 2 Any thoughts? The full script is below: C:\Program Files\OpenSSL>ca client Simple CA utility Written