[Spice-devel] [spice-gtk 3/3] ssl: Use accessors rather than direct struct access

Christophe Fergeau cfergeau at redhat.com
Wed Jan 11 09:15:18 UTC 2017


On Mon, Jan 09, 2017 at 03:38:43PM +0100, Pavel Grunt wrote:
> > +static int BIO_get_new_index(void)
> > +{
> > +    return 128;
> 
> looking at openssl implementation
> https://github.com/openssl/openssl/commit/8b8d963db5bb619fbada014f294f
> d09a855a2650
> 
> it uses BIO_TYPE_START and increments when called
> 

Are you suggesting that a constant and incremented static are
introduced? Or is it fine to just keep things as they are now?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170111/29bfcb00/attachment.sig>


More information about the Spice-devel mailing list