X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgtlsdatabase.h;h=34a8d3b97010f307387f3ab526bdfdd89e0a2915;hb=015db2d2af3d5a3f31909c7ffb5307e5141d8fbd;hp=9f93cc917ff8761e88151ffa98296361b63082e8;hpb=1b033919845cef366842373da9f1cfb56f522d01;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gtlsdatabase.h b/gio/gtlsdatabase.h index 9f93cc9..34a8d3b 100644 --- a/gio/gtlsdatabase.h +++ b/gio/gtlsdatabase.h @@ -13,20 +13,18 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Public License along with this library; if not, see . * * Author: Stef Walter */ +#ifndef __G_TLS_DATABASE_H__ +#define __G_TLS_DATABASE_H__ + #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) #error "Only can be included directly." #endif -#ifndef __G_TLS_DATABASE_H__ -#define __G_TLS_DATABASE_H__ - #include G_BEGIN_DECLS @@ -145,8 +143,10 @@ struct _GTlsDatabaseClass gpointer padding[16]; }; +GLIB_AVAILABLE_IN_ALL GType g_tls_database_get_type (void) G_GNUC_CONST; +GLIB_AVAILABLE_IN_ALL GTlsCertificateFlags g_tls_database_verify_chain (GTlsDatabase *self, GTlsCertificate *chain, const gchar *purpose, @@ -156,6 +156,7 @@ GTlsCertificateFlags g_tls_database_verify_chain (GTlsD GCancellable *cancellable, GError **error); +GLIB_AVAILABLE_IN_ALL void g_tls_database_verify_chain_async (GTlsDatabase *self, GTlsCertificate *chain, const gchar *purpose, @@ -166,13 +167,16 @@ void g_tls_database_verify_chain_async (GTlsD GAsyncReadyCallback callback, gpointer user_data); +GLIB_AVAILABLE_IN_ALL GTlsCertificateFlags g_tls_database_verify_chain_finish (GTlsDatabase *self, GAsyncResult *result, GError **error); +GLIB_AVAILABLE_IN_ALL gchar* g_tls_database_create_certificate_handle (GTlsDatabase *self, GTlsCertificate *certificate); +GLIB_AVAILABLE_IN_ALL GTlsCertificate* g_tls_database_lookup_certificate_for_handle (GTlsDatabase *self, const gchar *handle, GTlsInteraction *interaction, @@ -180,6 +184,7 @@ GTlsCertificate* g_tls_database_lookup_certificate_for_handle (GTlsD GCancellable *cancellable, GError **error); +GLIB_AVAILABLE_IN_ALL void g_tls_database_lookup_certificate_for_handle_async (GTlsDatabase *self, const gchar *handle, GTlsInteraction *interaction, @@ -188,10 +193,12 @@ void g_tls_database_lookup_certificate_for_handle_async (GTlsD GAsyncReadyCallback callback, gpointer user_data); +GLIB_AVAILABLE_IN_ALL GTlsCertificate* g_tls_database_lookup_certificate_for_handle_finish (GTlsDatabase *self, GAsyncResult *result, GError **error); +GLIB_AVAILABLE_IN_ALL GTlsCertificate* g_tls_database_lookup_certificate_issuer (GTlsDatabase *self, GTlsCertificate *certificate, GTlsInteraction *interaction, @@ -199,6 +206,7 @@ GTlsCertificate* g_tls_database_lookup_certificate_issuer (GTlsD GCancellable *cancellable, GError **error); +GLIB_AVAILABLE_IN_ALL void g_tls_database_lookup_certificate_issuer_async (GTlsDatabase *self, GTlsCertificate *certificate, GTlsInteraction *interaction, @@ -207,10 +215,12 @@ void g_tls_database_lookup_certificate_issuer_async (GTlsD GAsyncReadyCallback callback, gpointer user_data); +GLIB_AVAILABLE_IN_ALL GTlsCertificate* g_tls_database_lookup_certificate_issuer_finish (GTlsDatabase *self, GAsyncResult *result, GError **error); +GLIB_AVAILABLE_IN_ALL GList* g_tls_database_lookup_certificates_issued_by (GTlsDatabase *self, GByteArray *issuer_raw_dn, GTlsInteraction *interaction, @@ -218,6 +228,7 @@ GList* g_tls_database_lookup_certificates_issued_by (GTlsD GCancellable *cancellable, GError **error); +GLIB_AVAILABLE_IN_ALL void g_tls_database_lookup_certificates_issued_by_async (GTlsDatabase *self, GByteArray *issuer_raw_dn, GTlsInteraction *interaction, @@ -226,6 +237,7 @@ void g_tls_database_lookup_certificates_issued_by_async (GTls GAsyncReadyCallback callback, gpointer user_data); +GLIB_AVAILABLE_IN_ALL GList* g_tls_database_lookup_certificates_issued_by_finish (GTlsDatabase *self, GAsyncResult *result, GError **error);