I am facing some problem while using SSL_connect.

2005-04-13 Thread Sumit Jain
Hi All, I am facing some problem while using SSL_connect. Problem: I'm using openssl in a mutithreaded application. OpenSSL is used to connect Unix box from Windows box to fetch some information. While calling SSL_Connect() from windows, i get a return value as -1. For this

cbc3_enc.c usage

2005-04-13 Thread Israel Viente
Hi, Sorry I'm reposting but I got responses that this is a text based mailing list. So here it is again, this time in Plain text.   I have a simple question. I wanted to use cbc3 encryption but saw the following in openssl-0.9.7f\crypto\des: 1) In FILE0 - cbc3_enc.c   -

Re: cbc3_enc.c usage

2005-04-13 Thread Richard Levitte - VMS Whacker
In message [EMAIL PROTECTED] on Wed, 13 Apr 2005 10:43:13 +0300, Israel Viente [EMAIL PROTECTED] said: israel_viente I wanted to use cbc3 encryption but saw the following israel_viente in openssl-0.9.7f\crypto\des: israel_viente israel_viente 1) In FILE0 - cbc3_enc.c   -

Error on verify crl_check

2005-04-13 Thread Eddy Tan
Hi guys, Anyone knows what this error means? error 36 at 0 depth lookup:unhandled critical CRL extension I could verify OK without -crl_check option, but when uses that option the error happens as above. There´s no line on the man page regarding that error number (36). How to handle that

integrated login

2005-04-13 Thread Prashant Sodhiya
Hi All, I am a beginner in openSSL. Can anybody please guide me how to setup an integrated login environment in UNIX flavours using openSSL lib and certificates. thanks Prashant.

O.9.7g on AIX 5.2 (GCC / 64 bits)

2005-04-13 Thread Jacques Lebastard
Building Openssl 0.9.7g on AIX 5.2 (uname -a : AIX yeti 2 5 005F646A4C00) with GCC 3.3.2 hangs while compiling crypto/bn/asm/aix_ppc32.s I created an aix64-gcc Configure target with the following settings : aix64-gcc, gcc:-maix64 -O2 -DB_ENDIAN::-D_THREAD_SAFE:AIX::SIXTY_FOUR_BIT_LONG

[EMAIL PROTECTED]: X.509 v3 certificates and Sha256, Sha384, Sha512 and RSASSA-PSS]

2005-04-13 Thread Lutz Jaenicke
Forwarded to openssl-users Best regards, Lutz - Forwarded message from Kauppinen Pauli [EMAIL PROTECTED] - X-Original-To: [EMAIL PROTECTED] X-Original-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: X.509 v3

Re: [EMAIL PROTECTED]: X.509 v3 certificates and Sha256, Sha384, Sha512 and RSASSA-PSS]

2005-04-13 Thread Richard Levitte - VMS Whacker
In message [EMAIL PROTECTED] on Wed, 13 Apr 2005 13:06:45 +0200, Lutz Jaenicke [EMAIL PROTECTED] said: Lutz.Jaenicke From: Kauppinen Pauli [EMAIL PROTECTED] Lutz.Jaenicke I am trying to verify X.509 v3 certificate with Lutz.Jaenicke openssl.exe verify command but I get following error:

Re: Error on verify crl_check

2005-04-13 Thread Dr. Stephen Henson
On Wed, Apr 13, 2005, Eddy Tan wrote: Hi guys, Anyone knows what this error means? error 36 at 0 depth lookup:unhandled critical CRL extension I could verify OK without -crl_check option, but when uses that option the error happens as above. There´s no line on the man page regarding

Error to sign with OpenSSL

2005-04-13 Thread Angel Martinez Gonzalez
Hello: I want sign with OpenSSL, and I use the RSA_sign fuction: void Firmar(char *mdigest, int longmdigest, RSA *claveRSA) { int error; char *firma; firma = malloc(RSA_size(claveRSA)); error = RSA_sign(NID_sha1, mdigest, longmdigest, firma, strlen(firma), claveRSA); if (error == 1)

Problem with RSA_private_decrypt RSA_print_fp

2005-04-13 Thread Tyler Durden
Hello, I have a problem wiht the function int RSA_private_decrypt(int flen, unsigned char *from, unsigned char *to, RSA *rsa, int padding); When I call this function after to call the RSA_public_encrypt, I get -1 return value, therefore I get an error. The information error is: LIB: rsa

Re: Error to sign with OpenSSL

2005-04-13 Thread Tyler Durden
Hello, I think that you have a problem with the call strlen(firma), because this function use the character '\0' to find the length of the char* and you has not initialized the char* firma. On 4/13/05, Angel Martinez Gonzalez [EMAIL PROTECTED] wrote: Hello: I want sign with OpenSSL, and I

Encrypting files diferent than .txt

2005-04-13 Thread Rafael Cividanes
Hi, I'm trying to make a function to get a file in word format (.doc) , encrypt and decrypt it. I'm using symetric encryption with EVP API. When I use .txt files, everything works properly, but with .doc files it fails. Can EVP API be used to encrypt a .pdf file or an excel file? I

Re: Error to sign with OpenSSL

2005-04-13 Thread Pablo J Royo
There are a lot of ugly things in your code, but that strlen(firma) has no sense. I think you are confusing the size of the private key RSA struct with the size of the buffer you want to sign. Also, you are using strlen with a buffer (firma) with any content and probaly not ended with 0, so it

Re: Encrypting files diferent than .txt

2005-04-13 Thread Tyler Durden
Hello, Yes, I encrypt with symmetric key ciphers *.doc and *.pdf. You have that open the files in binary mode. On 4/13/05, Rafael Cividanes [EMAIL PROTECTED] wrote: Hi, I'm trying to make a function to get a file in word format (.doc) , encrypt and decrypt it. I'm using symetric

HTTPS POST example snippet

2005-04-13 Thread Schneider John
I've seen the questions and have asked them myself, but I've finally gotten it to work. This does NOT use anything fancy in SSL: it performs the handshake that SSL_connect() gives you, but that's it: no certificates, etc... so this is the bare minimum (that I'm aware of) needed to do an HTTPS

Re: Encrypting files diferent than .txt

2005-04-13 Thread Marco Roeland
Op woensdag 13 april 2005 om 09:14 uur schreef Rafael Cividanes het volgende: Hi, I'm trying to make a function to get a file in word format (.doc) , encrypt and decrypt it. I'm using symetric encryption with EVP API. When I use .txt files, everything works properly, but with .doc

Re: Problem with RSA_private_decrypt RSA_print_fp

2005-04-13 Thread Tyler Durden
Sorry, I forget put in the flen parameter of the function RSA_private_decrypt(int flen, unsigned char *from, unsigned char *to, RSA *rsa, int padding); the value returned by the RSA_public_encrypt(...), but I have not solved the problem with the function int RSA_print_fp(FILE *fp, RSA *x, int

Please - Help me out here - Need to make design decision based on your answer

2005-04-13 Thread Radhika Gunasekar
-Original Message- From: Radhika Gunasekar [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 10:46 AM To: 'openssl-users@openssl.org' Subject: Encrypting/Decrypting messages Hello, I am a new user to OpenSSL. I have couple of questions. Background: I am working

A little more about custom extension

2005-04-13 Thread pana
Hi, I found here very useful information about custom extension, but I need a little more help. I wrote the c file to define my own extension but I don't now where put it and how I can use it, i.e. how the openssl find it? Thanks pAnA

Re: Problem with RSA_private_decrypt RSA_print_fp

2005-04-13 Thread Nils Larsch
Tyler Durden wrote: Sorry, I forget put in the flen parameter of the function RSA_private_decrypt(int flen, unsigned char *from, unsigned char *to, RSA *rsa, int padding); the value returned by the RSA_public_encrypt(...), but I have not solved the problem with the function int RSA_print_fp(FILE

Problems Communicating with openSSL and openLDAP

2005-04-13 Thread Matt Juszczak
Hello All, I've followed the document below word for word: http://www.openldap.org/pub/ksoper/OpenLDAP_TLS_howto.html The test at the end with the following syntax with my variables filled in also works successfully, I get success on the local machine and also in my slapd.conf file. |*openssl

ssltest.c compile problem on AIX and potentailly other platforms.

2005-04-13 Thread Sir Scot of Mucks the Mire Hearted
Hello, I am compiling openssl-0.9.7g on AIX 5.2.0 using the Visual Age compiler. I am compiling with fips, threads, zlib, and shared. While compiling sstltest.c, I get the following error: -- ssltest.c, line 1979.12: 1506-045 (S) Undeclared identifier s. -- Going to that portion of the code

plans for SHA-256, SHA-384, SHA-512 ?

2005-04-13 Thread Phil Howard
Are there any plans to add SHA-256, SHA-384, and SHA-512 to OpenSSL? I have a program that does recursive file tree digesting with many options that don't exist in other programs. I'm wanting to extend it with options to use these digesting algorithms. It already supports MD4, MD5, RMD160, and

Re: plans for SHA-256, SHA-384, SHA-512 ?

2005-04-13 Thread Nils Larsch
Phil Howard wrote: Are there any plans to add SHA-256, SHA-384, and SHA-512 to OpenSSL? have a look at 0.9.8-dev (use a recent snapshot of the cvs head) Nils __ OpenSSL Project

PKCS7 verification using a public key.

2005-04-13 Thread Glenn Bullock
Gentlemen (et al ;), I am trying to verify a pkcs7 based signature generated by the Crypto win32 libraries and am having limited success. Limited, I write, since I am able to successfully call d2i_PKCS7, PKCS7_type_is_signed (yes), and PKCS7_type_is_enveloped (no) on the signature. The

Re: Error on verify crl_check

2005-04-13 Thread Eddy Tan
error 36 at 0 depth lookup:unhandled critical CRL extension Depends on what the critical extension is. Most probably it means that kind of CRL is not supported. Post what you get with: openssl crl -in crl.pem -text -noout Hi Steve, Below is what I got when doing that query:

Re: Error on verify crl_check

2005-04-13 Thread Dr. Stephen Henson
On Wed, Apr 13, 2005, Eddy Tan wrote: error 36 at 0 depth lookup:unhandled critical CRL extension Depends on what the critical extension is. Most probably it means that kind of CRL is not supported. Post what you get with: openssl crl -in crl.pem -text -noout Hi Steve,

JNI

2005-04-13 Thread Pól Ó Riain
Hello, I am trying to create a JNI interface to the OpenSSL crypto libraries and i've having bother finding resources. Any help/resources would be appreciated. Thanks __ OpenSSL Project