Implemented. (pkcs7_clearsign): Implemented. (get_zero_len_passwd):
authorJeffrey Stedfast <fejj@ximian.com>
Thu, 19 Apr 2001 23:15:51 +0000 (23:15 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Thu, 19 Apr 2001 23:15:51 +0000 (23:15 +0000)
commit46bf7f7890fc74bd6bc94fdf33a90651880ce7cc
tree6c19917d33b63c00bf7487615fc55943caa054ab
parentf7eab6f30261ce1133d9842768889843a6e1c656
Implemented. (pkcs7_clearsign): Implemented. (get_zero_len_passwd):

2001-04-19  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pkcs7-context.c (pkcs7_sign): Implemented.
(pkcs7_clearsign): Implemented.
(get_zero_len_passwd): Convenience function to try a 0-length key
on the certificate db - if this works then there is no need to
prompt the user.
(get_password): Callback to get the password.
(camel_cipher_hash_to_nss): Convenience function to convert a
CamelCipherHash to an NSS HASH_HashType.
(nss_hash_to_sec_oid): Converts a HASH_HashType to a SecOidTag.
(pkcs7_digest): Digest function for use with pkcs7_sign().
(sign_encode_cb): Callback to write the signed data to the output
stream.
(pkcs7_verify): Hacked on a bit more but am still a bit on the
confused side. This might work but I wouldn't hold my breath. The
sign/clearsign should be close if not correct, but this one...god
only knows.
(pkcs7_decrypt): Implemented.
(pkcs7_encrypt): Implemented (mostly, still need to handle when
'sign' is TRUE).
camel/ChangeLog
camel/camel-pkcs7-context.c