From: Lee Su-jin <[EMAIL PROTECTED]>

The first question that comes to my mind is: what are you trying to do?
You have only told us that you want to make a change, and honestly, I
think you're doing the worst possible changed and am not at all
surprised you get in trouble.

I'm afraid you'll have to run your program through the debugger for a
little while...

mutantkr> Hello.
mutantkr> I'm a newbie in openssl.
mutantkr>  
mutantkr> well...I want to know how to change the data structure
mutantkr> of x.509 in the context of "crypto\x509\x509.h"?
mutantkr> Could somebody give an advice for this?
mutantkr> I tried something for example.
mutantkr> 
mutantkr> for example 
mutantkr> 
mutantkr> typedef struct X509_req_info_st
mutantkr>       {
mutantkr>       ASN1_INTEGER *version;
mutantkr>       $(C!&
(Bmutantkr>    $(C!&
(Bmutantkr>    ALICE bob;     // <= it is changed!!!
mutantkr>       $(C!&
(Bmutantkr>    $(C!&
(Bmutantkr>    STACK_OF(X509_ATTRIBUTE) *attributes;   int
mutantkr> req_kludge;
mutantkr>       } X509_REQ_INFO;
mutantkr> 
mutantkr> typedef struct ALICE_st
mutantkr>       {
mutantkr>             ASN1_INTEGER cat;
mutantkr>             X509_NAME bird;
mutantkr>             ...
mutantkr>              
mutantkr>           } ALICE 
mutantkr> 
mutantkr> X509_REQ_INFO *X509_REQ_INFO_new(void)
mutantkr>       {
mutantkr>       X509_REQ_INFO *ret=NULL;
mutantkr>       ASN1_CTX c;
mutantkr>       M_ASN1_New_Malloc(ret,X509_REQ_INFO);
mutantkr>     M_ASN1_New(ret->version,M_ASN1_INTEGER_new);
mutantkr>       M_ASN1_New(ret->pubkey,X509_PUBKEY_new);
mutantkr>     M_ASN1_New(ret-
mutantkr>           attributes,sk_X509_ATTRIBUTE_new_null);
mutantkr>       ret->bob->bird = X509_NAME_new();  
mutantkr>               // <= it is changed!!! 
mutantkr>                                       
mutantkr> It doesn$(C!/(Bt works with this error (exception error)
mutantkr> msg.
mutantkr> <<Unhandled exception in openssl.exe(LIBEAY32.DLL) :
mutantkr> 0xC0000005: Access Violation>>
mutantkr>       $(C!&
(Bmutantkr>    $(C!&
(Bmutantkr>    }
mutantkr> 
mutantkr> I guess that each variable or function used stack.
mutantkr> but I don't understand where is used be data or
mutantkr> function in stack?
mutantkr> 
mutantkr> in this case, If  I want to use the bird of the ALICE
mutantkr> type, then where, how and what to change?
mutantkr> If I change or add some data structure, then where,
mutantkr> how and what to change for use this data structure? 
mutantkr> 
mutantkr> Please answer me and have a nice day.

-- 
Richard Levitte   \ Spannv�gen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken   \ S-168 35  BROMMA  \ T: +46-8-26 52 47
Redakteur@Stacken   \      SWEDEN       \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to