[glibmm] giomm: Add the GTls* GTypes to the extra defs generation utility.
- From: Josà Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] giomm: Add the GTls* GTypes to the extra defs generation utility.
- Date: Wed, 14 Nov 2012 01:33:26 +0000 (UTC)
commit ba1f8cb5f602c835c89ba8c8ad97c25c8be320bb
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date: Tue Nov 13 20:09:58 2012 -0500
giomm: Add the GTls* GTypes to the extra defs generation utility.
* tools/extra_defs_gen/generate_defs_gio.cc: Add the GTypes.
* gio/src/gio_signals.defs: And regenerate the signal and property
defs file.
ChangeLog | 8 ++
gio/src/gio_signals.defs | 188 +++++++++++++++++++++++++++++
tools/extra_defs_gen/generate_defs_gio.cc | 8 ++
3 files changed, 204 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9dcf5f7..56b8eca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2012-11-13 Josà Alburquerque <jaalburquerque gmail com>
+ giomm: Add the GTls* GTypes to the extra defs generation utility.
+
+ * tools/extra_defs_gen/generate_defs_gio.cc: Add the GTypes.
+ * gio/src/gio_signals.defs: And regenerate the signal and property
+ defs file.
+
+2012-11-13 Josà Alburquerque <jaalburquerque gmail com>
+
giomm.h: Re-add an accidentally removed include.
* gio/giomm.h: Re-add 'simpleaction.h' which was accidentally removed.
diff --git a/gio/src/gio_signals.defs b/gio/src/gio_signals.defs
index c6168b2..2a53080 100644
--- a/gio/src/gio_signals.defs
+++ b/gio/src/gio_signals.defs
@@ -1781,6 +1781,8 @@
(construct-only #f)
)
+;; From GTlsBackend
+
;; From GTlsCertificate
(define-property certificate
@@ -1828,6 +1830,192 @@
(construct-only #t)
)
+;; From GTlsClientConnection
+
+(define-property accepted-cas
+ (of-object "GTlsClientConnection")
+ (prop-type "GParamPointer")
+ (docs "Distinguished names of the CAs the server accepts certificates from")
+ (readable #t)
+ (writable #f)
+ (construct-only #f)
+)
+
+(define-property server-identity
+ (of-object "GTlsClientConnection")
+ (prop-type "GParamObject")
+ (docs "GSocketConnectable identifying the server")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property use-ssl3
+ (of-object "GTlsClientConnection")
+ (prop-type "GParamBoolean")
+ (docs "Use SSL 3.0 rather than trying to use TLS 1.x")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property validation-flags
+ (of-object "GTlsClientConnection")
+ (prop-type "GParamFlags")
+ (docs "What certificate validation to perform")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+;; From GTlsConnection
+
+(define-signal accept-certificate
+ (of-object "GTlsConnection")
+ (return-type "gboolean")
+ (when "last")
+ (parameters
+ '("GTlsCertificate*" "p0")
+ '("GTlsCertificateFlags" "p1")
+ )
+)
+
+(define-property base-io-stream
+ (of-object "GTlsConnection")
+ (prop-type "GParamObject")
+ (docs "The GIOStream that the connection wraps")
+ (readable #t)
+ (writable #t)
+ (construct-only #t)
+)
+
+(define-property require-close-notify
+ (of-object "GTlsConnection")
+ (prop-type "GParamBoolean")
+ (docs "Whether to require proper TLS close notification")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property rehandshake-mode
+ (of-object "GTlsConnection")
+ (prop-type "GParamEnum")
+ (docs "When to allow rehandshaking")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property use-system-certdb
+ (of-object "GTlsConnection")
+ (prop-type "GParamBoolean")
+ (docs "Whether to verify peer certificates against the system certificate database")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property database
+ (of-object "GTlsConnection")
+ (prop-type "GParamObject")
+ (docs "Certificate database to use for looking up or verifying certificates")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property interaction
+ (of-object "GTlsConnection")
+ (prop-type "GParamObject")
+ (docs "Optional object for user interaction")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property certificate
+ (of-object "GTlsConnection")
+ (prop-type "GParamObject")
+ (docs "The connection's certificate")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property peer-certificate
+ (of-object "GTlsConnection")
+ (prop-type "GParamObject")
+ (docs "The connection's peer's certificate")
+ (readable #t)
+ (writable #f)
+ (construct-only #f)
+)
+
+(define-property peer-certificate-errors
+ (of-object "GTlsConnection")
+ (prop-type "GParamFlags")
+ (docs "Errors found with the peer's certificate")
+ (readable #t)
+ (writable #f)
+ (construct-only #f)
+)
+
+;; From GTlsDatabase
+
+;; From GTlsFileDatabase
+
+(define-property anchors
+ (of-object "GTlsFileDatabase")
+ (prop-type "GParamString")
+ (docs "The certificate authority anchor file")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+;; From GTlsInteraction
+
+;; From GTlsPassword
+
+(define-property flags
+ (of-object "GTlsPassword")
+ (prop-type "GParamFlags")
+ (docs "Flags about the password")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property description
+ (of-object "GTlsPassword")
+ (prop-type "GParamString")
+ (docs "Description of what the password is for")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property warning
+ (of-object "GTlsPassword")
+ (prop-type "GParamString")
+ (docs "Warning about the password")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+;; From GTlsServerConnection
+
+(define-property authentication-mode
+ (of-object "GTlsServerConnection")
+ (prop-type "GParamEnum")
+ (docs "The client authentication mode")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
;; From GUnixConnection
;; From GSocketListener
diff --git a/tools/extra_defs_gen/generate_defs_gio.cc b/tools/extra_defs_gen/generate_defs_gio.cc
index 278db64..6e63aea 100644
--- a/tools/extra_defs_gen/generate_defs_gio.cc
+++ b/tools/extra_defs_gen/generate_defs_gio.cc
@@ -114,7 +114,15 @@ int main(int, char**)
<< get_defs(G_TYPE_SOCKET_CLIENT)
<< get_defs(G_TYPE_SOCKET_CONNECTION)
<< get_defs(G_TYPE_TCP_CONNECTION)
+ << get_defs(G_TYPE_TLS_BACKEND)
<< get_defs(G_TYPE_TLS_CERTIFICATE)
+ << get_defs(G_TYPE_TLS_CLIENT_CONNECTION)
+ << get_defs(G_TYPE_TLS_CONNECTION)
+ << get_defs(G_TYPE_TLS_DATABASE)
+ << get_defs(G_TYPE_TLS_FILE_DATABASE)
+ << get_defs(G_TYPE_TLS_INTERACTION)
+ << get_defs(G_TYPE_TLS_PASSWORD)
+ << get_defs(G_TYPE_TLS_SERVER_CONNECTION)
#ifndef G_OS_WIN32
<< get_defs(G_TYPE_UNIX_CONNECTION)
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]