[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openssl-dev
Subject:    Re: X509V3_EXT prototype problems
From:       Dr Stephen Henson <drh () celocom ! com>
Date:       1999-06-22 20:11:09
[Download RAW message or body]

Daniel Lanz wrote:
> 
> I have found a problem in the function prototype typedefs for four
> of the X509V3_EXT functions in crypto/x509v3/x509v3.h .
> The parameter lists for the functions typdef'd (below) are left
> undefined.  This causes problems when you crank up the
> debug level on a C compiler or compile with mixed C++ code.
> 
> typedef char * (*X509V3_EXT_NEW)();
> typedef void (*X509V3_EXT_FREE)();
> typedef char * (*X509V3_EXT_D2I)();
> typedef int (*X509V3_EXT_I2D)();
> 
> The problem is that one cannot "fix" this by simply adding
> parameters to the prototypes because the parameter types
> vary depending upon the call (i.e., BASIC_CONSTRAINTS_free()
> takes a BASIC_CONSTRAINTS* while an ext_ku_free() takes
> a STACK* ).  The solution is that all function pointers must have
> the same calling sequence, e.g., void*.
> 

I've included a fix for this in the latest snapshot. Let me know if it
works OK.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: shenson@drh-consultancy.demon.co.uk 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: drh@celocom.com PGP key: via homepage.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majordomo@openssl.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic