X509_new

2003-06-30 Thread Aintzane Armentia Diaz de Tuesta

Hi,

We  are  new  developing  applications  with  the openssl libraries. We are
trying  to  develop  a  very simple application, we want to create an empty
certificate. The source code of our application is as follows:

#include openssl/x509.h
#include openssl/pem.h
#include openssl/err.h
#include stdio.h

void main void ()
{
  X509* x;

  .
  .
  .
  x = X509_new();
  .
  .
  .
}

When we build it, we obtain an error: unresolved external symbol _X509_new.
We  have  added  the  path  where  X509.h  file  is.  We  don't know what's
happening. Could anyone help us please? Thanks in advance,

Aintzane

__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


Re: X509_new

2003-06-30 Thread Pablo J Royo
This a openssl-users group question but... ¿Are you linking with OpenSSL
libraries?
(-L/usr/local/ssl/lib -lcrypto line in your makefile,  or libeay32.lib in
your VC++ project libraries tab)

- Original Message -
From: Aintzane Armentia Diaz de Tuesta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 30, 2003 9:49 AM
Subject: X509_new



 Hi,

 We  are  new  developing  applications  with  the openssl libraries. We
are
 trying  to  develop  a  very simple application, we want to create an
empty
 certificate. The source code of our application is as follows:

 #include openssl/x509.h
 #include openssl/pem.h
 #include openssl/err.h
 #include stdio.h

 void main void ()
 {
   X509* x;

   .
   .
   .
   x = X509_new();
   .
   .
   .
 }

 When we build it, we obtain an error: unresolved external symbol
_X509_new.
 We  have  added  the  path  where  X509.h  file  is.  We  don't know
what's
 happening. Could anyone help us please? Thanks in advance,

 Aintzane

 __
 OpenSSL Project http://www.openssl.org
 Development Mailing List   [EMAIL PROTECTED]
 Automated List Manager   [EMAIL PROTECTED]


__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


[openssl.org #650] [PATCH] new option '-issuer_hash' for the x509 command

2003-06-30 Thread Nils Larsch via RT

Hi,

attached is a small patch to implement a new '-issuer_hash'
option for the 'x509' command. With this patch 'openssl x509
-issuer_hash ...' returns the hash value of the issuer name
(similar to the normal '-hash' option which returns the hash
value of the subject name).

Regards,
Nils
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


Re: d2i and ASN1_CHOICE

2003-06-30 Thread Fernando Moya
I found the error. At the end, the problem was a bad definition of
Sub_seq100. I have fixed it and ASN1_CHOICE works fine now. Thanks to all.

Regards.

Fernando Moya Bernal.
University of Malaga. Spain.


  Hi, I am having problems with CHOICE in the following ASN.1 sequence:
 
  -
  DEFINITIONS IMPLICIT TAGS
 
  Sub_seq200 ::= SEQUENCE
  {
   sub_field1 Sub_seq100 OPTIONAL,
   sub_field2 [0] Sub_seq400 OPTIONAL
   }
 
  Seq1 ::= CHOICE
   {
   field1 Sub_seq100,
   field2 [0] Sub_seq200
   }
 
  -
 
  Implemented by:
 
  typedef struct Sub_seq200_st
  {
  Sub_seq100 *sub_field1;
  Sub_seq200 *sub_field2;
  }Sub_seq200;
 
  typedef struct Seq1_st
  {
  int type;
  union {
  char *ptr;
  Sub_seq100 *field1;
  Sub_seq200 *field2;
  }value;
  }Seq1;
 
  ASN1_SEQUENCE(Sub_seq200) = {
  ASN1_OPT(Sub_seq200,sub_field1, Sub_seq100),
  ASN1_IMP_OPT(Sub_seq200,sub_field2, Sub_seq400,0),
  } ASN1_SEQUENCE_END(Sub_seq200)
 
  IMPLEMENT_ASN1_FUNCTIONS(Sub_seq200)
 
  ASN1_CHOICE(Seq1) = {
  ASN1_SIMPLE(Seq1, value.field1,Sub_seq100),
  ASN1_IMP(Seq1, value.field2,Sub_seq200, 0)
  } ASN1_CHOICE_END(Seq1)
 
  IMPLEMENT_ASN1_FUNCTIONS(Seq1)
 
  Well, Seq1_new, Seq1_free and i2d_Seq1 functions work correctly and DER
  output is right, but when I call d2i_Seq1 with DER output from i2d_Seq1,
it
  returns NULL. I think it could be an incorrect definition of
  ASN1_CHOICE(Seq1).
 
  Does Anybody know what is wrong?
 

 See what error message you get with ERR_print_errors_fp(srderr);

 Steve.
 --
 Dr Stephen N. Henson.
 Core developer of the   OpenSSL project: http://www.openssl.org/
 Freelance consultant see: http://www.drh-consultancy.demon.co.uk/
 Email: [EMAIL PROTECTED], PGP key: via homepage.
 __
 OpenSSL Project http://www.openssl.org
 Development Mailing List   [EMAIL PROTECTED]
 Automated List Manager   [EMAIL PROTECTED]



__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


submission: GOST objects

2003-06-30 Thread Vadim Fedukovich
Dear OpenSSL team,

please accept object definitions from recent IETF drafts:
draft-leontiev-cryptopro-cpcms-00.txt
draft-leontiev-cryptopro-cppk-00.txt
draft-chudov-cryptopro-cptls-00.txt

Also attached is a CA certificate using this objects for
signature algorithm, public key type and parameters.

Hint wanted: what exactly is a 1.3.6.1.4.311.21.1 object listed as
the last extension there?

thank you,
Vadim Fedukovich
-- 
Naina library: http://www.unity.net/~vf/naina_r1.tgz


certnew.cer
Description: Binary data
--- crypto/objects/objects.txt.orig Fri Dec 20 11:39:42 2002
+++ crypto/objects/objects.txt  Mon Jun 30 23:44:04 2003
@@ -915,3 +915,45 @@
 
 rsadsi 3 10: DES-CDMF  : des-cdmf
 rsadsi 1 1 6   : rsaOAEPEncryptionSET
+
+member-body 643: ISO-RU: ISO RU Member Body
+ISO-RU 2   : rans
+rans 2 : cryptopro
+
+cryptopro 3: GOSTsig-R3410-ECC
+cryptopro 4: GOSTsig-R3410-modprime
+cryptopro 9: GOSThash-R3411
+cryptopro 10   : GOSThmac-R3411
+cryptopro 13 1 : GOSTkeyWrap
+cryptopro 14 1 : GOSTkeyMix
+cryptopro 19   : GOSTpk-R3410-ECC
+cryptopro 20   : GOSTpk-R3410-modprime
+cryptopro 21   : GOST28147
+
+cryptopro 30   : GOST-hashes
+cryptopro 32   : GOST-signs
+cryptopro 33   : GOST-exchanges
+cryptopro 35   : GOST-eccsigns
+cryptopro 36   : GOST-eccexchanges
+cryptopro 37   : GOST-privkeys
+
+GOST-hashes 0  : GOST-hashparam-test
+GOST-hashes 1  : GOST-hashparam-default
+
+GOST-signs 0   : GOST-pkparam-test
+GOST-signs 2   : GOST-pkparam-A
+GOST-signs 3   : GOST-pkparam-B
+GOST-signs 4   : GOST-pkparam-C
+GOST-signs 5   : GOST-pkparam-D
+
+GOST-eccsigns 0: GOST-eccparam-test
+GOST-eccsigns 1: GOST-eccparam-A
+GOST-eccsigns 2: GOST-eccparam-B
+GOST-eccsigns 3: GOST-eccparam-C
+
+GOST-exchanges 1   : GOST-XchA
+GOST-exchanges 2   : GOST-XchB
+GOST-exchanges 3   : GOST-XchC
+
+GOST-eccexchanges 0: GOST-eccXchA
+GOST-eccexchanges 1: GOST-eccXchB