Re: X509 reference counts

1999-12-19 Thread Bodo Moeller
Geoff Thorpe [EMAIL PROTECTED]: The idea is that you hand those BIOs over to the SSL library, you usually don't keep pointers of your own. SSL_free(ssl) will call BIO_free for each of them, but just once if bio_read == bio_write, so usually everything works as intended. Obviously this is

Re: X509 reference counts

1999-11-10 Thread Dr Stephen Henson
Ramsay, Ron wrote: When you speak of breaking existing applications, I guess you mean applications based on the s_server code (or those that use sockets). As someone who has written code based on BIOs and not sockets, I am somewhat concerned that BIO reference counts are broken. Apparently

Re: X509 reference counts

1999-11-10 Thread Geoff Thorpe
Hi, On Tue, 9 Nov 1999, Dr Stephen Henson wrote: Well I don't know the reason myself but from looking at the code I'd guess that those functions that return an object with an upped reference count tend to be those where its likely the application will want to keep the object around. This

Re: X509 reference counts

1999-11-09 Thread Geoff Thorpe
Hi, On Tue, 9 Nov 1999, Dr Stephen Henson wrote: Yes horrible isn't it? I've also noticed wildly inconsistent behaviour. When you call something like XXX_get_YYY() you might get something which will last only as long as the parent and it shouldn't be freed at all or something which will

Re: X509 reference counts

1999-11-09 Thread Dr Stephen Henson
Geoff Thorpe wrote: Hi, On Tue, 9 Nov 1999, Dr Stephen Henson wrote: Yes horrible isn't it? I've also noticed wildly inconsistent behaviour. When you call something like XXX_get_YYY() you might get something which will last only as long as the parent and it shouldn't be freed at

RE: X509 reference counts

1999-11-09 Thread Ramsay, Ron
robust! We're still not at release 1.0. Please, can something be done? -Original Message- From: Dr Stephen Henson [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, 10 November 1999 8:19 To: [EMAIL PROTECTED] Subject: Re: X509 reference counts Geoff Thorpe wrote: Hi, On Tue, 9

X509 reference counts

1999-11-08 Thread Geoff Thorpe
Hi there, I've been checking up on some memory management issues and have a couple of questions. If anyone has any thoughts or views I'd very much appreciate them. X509_STORE_CTX_get_current_cert() and a few others do not up the reference count on the X509 object returned. I was carefully

Re: X509 reference counts

1999-11-08 Thread Dr Stephen Henson
Geoff Thorpe wrote: Hi there, I've been checking up on some memory management issues and have a couple of questions. If anyone has any thoughts or views I'd very much appreciate them. X509_STORE_CTX_get_current_cert() and a few others do not up the reference count on the X509 object