diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-05-17 05:23:20 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-05-17 05:23:20 +0800 |
commit | ae9d99bda30e7a5fd2347fe00daf0f85e8c408e3 (patch) | |
tree | ad460a1f5002a53af44560f8abd27be4b338ec51 | |
parent | 434c0c8ca58552815c04c033c8a7a1ee0ab79401 (diff) | |
download | gsoc2013-evolution-ae9d99bda30e7a5fd2347fe00daf0f85e8c408e3.tar gsoc2013-evolution-ae9d99bda30e7a5fd2347fe00daf0f85e8c408e3.tar.gz gsoc2013-evolution-ae9d99bda30e7a5fd2347fe00daf0f85e8c408e3.tar.bz2 gsoc2013-evolution-ae9d99bda30e7a5fd2347fe00daf0f85e8c408e3.tar.lz gsoc2013-evolution-ae9d99bda30e7a5fd2347fe00daf0f85e8c408e3.tar.xz gsoc2013-evolution-ae9d99bda30e7a5fd2347fe00daf0f85e8c408e3.tar.zst gsoc2013-evolution-ae9d99bda30e7a5fd2347fe00daf0f85e8c408e3.zip |
We don't need to be passed the certdb path anymore.
2001-05-16 Jeffrey Stedfast <fejj@ximian.com>
* camel-smime-context.c (camel_smime_context_new): We don't need
to be passed the certdb path anymore.
svn path=/trunk/; revision=9855
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-smime-context.c | 5 | ||||
-rw-r--r-- | camel/camel-smime-context.h | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index f491fd6aee..847482b14b 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2001-05-16 Jeffrey Stedfast <fejj@ximian.com> + + * camel-smime-context.c (camel_smime_context_new): We don't need + to be passed the certdb path anymore. + 2001-05-16 Dan Winship <danw@ximian.com> * camel-medium.c (camel_medium_get_headers): New function to diff --git a/camel/camel-smime-context.c b/camel/camel-smime-context.c index 8fa1a6cec3..a11d933b9c 100644 --- a/camel/camel-smime-context.c +++ b/camel/camel-smime-context.c @@ -117,7 +117,6 @@ camel_smime_context_get_type (void) /** * camel_smime_context_new: * @session: CamelSession - * @certdb: certificate db path or NULL to create a volatile temp db * * This creates a new CamelSMimeContext object which is used to sign, * verify, encrypt and decrypt streams. @@ -125,7 +124,7 @@ camel_smime_context_get_type (void) * Return value: the new CamelSMimeContext **/ CamelSMimeContext * -camel_smime_context_new (CamelSession *session, const char *certdb) +camel_smime_context_new (CamelSession *session) { CamelSMimeContext *context; CERTCertDBHandle *handle; @@ -138,7 +137,7 @@ camel_smime_context_new (CamelSession *session, const char *certdb) camel_cipher_context_construct (CAMEL_CIPHER_CONTEXT (context), session); handle = CERT_CertGetDefaultCertDBHandle (); - if (!certdb) { + if (!handle) { camel_object_unref (CAMEL_OBJECT (context)); return NULL; } diff --git a/camel/camel-smime-context.h b/camel/camel-smime-context.h index 867f09036f..0ced7b9c1b 100644 --- a/camel/camel-smime-context.h +++ b/camel/camel-smime-context.h @@ -53,7 +53,7 @@ typedef struct _CamelSMimeContextClass { CamelType camel_smime_context_get_type (void); -CamelSMimeContext *camel_smime_context_new (CamelSession *session, const char *certdb_path); +CamelSMimeContext *camel_smime_context_new (CamelSession *session); /* SMIME routines */ #define camel_smime_sign(c, u, h, i, o, e) camel_cipher_sign (CAMEL_CIPHER_CONTEXT (c), u, h, i, o, e) |