Wan-Teh Chang wrote:
> 
> "Nelson B. Bolyard" wrote:
> >
> > Inadequacies of SSL_SecurityStatus:
> >
> > 7. Returns a malloced ASCII string to identify the symmetric cipher used.
> >
> >    - These strings are not localized (although it's not clear how to 
> >      localize TLAs like RC2 and DES).
> 
> These strings don't need to be translated.  They are morally equivalent
> to the SSL3CipherAlgorithm enumeration constants in your proposal below.
> But I agree that it's better to return numeric values as it saves a
> malloc call and a free call (by the caller).

Since the maximum size of each of these strings is known, and small,
perhaps the struct should contain one or more short arrays of char.

> Should we make the interface flexible enough so that we can add
> new members to the SSLChannelInfo structure in a future version?

How about if I add a small array of reserved PRUint32s at the end,
and maybe a length field at the beginning.  

I'll post a revised proposal here shortly.

--
Nelson Bolyard               Sun / Netscape Alliance

Reply via email to