Re: [PATCH spice-gtk 1/2] Add SpiceSession:ca property

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 19, 2012 at 09:52:01PM +0100, Marc-André Lureau wrote:
> ---
>  gtk/spice-session-priv.h |  2 ++
>  gtk/spice-session.c      | 40 ++++++++++++++++++++++++++++++++++++++--
>  2 files changed, 40 insertions(+), 2 deletions(-)
> 
> diff --git a/gtk/spice-session-priv.h b/gtk/spice-session-priv.h
> index 13345b4..804658d 100644
> --- a/gtk/spice-session-priv.h
> +++ b/gtk/spice-session-priv.h
> @@ -40,6 +40,7 @@ struct _SpiceSessionPrivate {
>      char              *ca_file;
>      char              *ciphers;
>      GByteArray        *pubkey;
> +    GByteArray        *ca;
>      char              *cert_subject;
>      guint             verify;
>      gboolean          read_only;
> @@ -135,6 +136,7 @@ const gchar* spice_session_get_host(SpiceSession *session);
>  const gchar* spice_session_get_cert_subject(SpiceSession *session);
>  const gchar* spice_session_get_ciphers(SpiceSession *session);
>  const gchar* spice_session_get_ca_file(SpiceSession *session);
> +void spice_session_get_ca(SpiceSession *session, guint8 **ca, guint *size);

I'd have a slight preference for a gsize *size, but the GByteArray API is
inconsistent wrt to gsize VS guint use, it seems to be using guint in older
API, and gsize in newer one. Patch looks good either way with the added
break; that you mentioned. Should we more explicit in the API doc about the
expected format for the CA cert data?

Christophe

Attachment: pgpb0tq7qw8HV.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]