CamelSMIMEContext: Camel Reference Manual

## CamelSMIMEContext CamelSMIMEContext |

## Functions

CamelCipherContext * | camel_smime_context_new ()
void | camel_smime_context_set_encrypt_key ()
void | camel_smime_context_set_sign_mode ()
guint32 | camel_smime_context_describe_part ()
const gchar * | camel_smime_context_util_nss_error_to_string ()

## Types and Values

enum | CamelSMIMESign
enum | CamelSMIMEDescribe

## Object Hierarchy

        GObject
        ╰── CamelCipherContext
            ╰── CamelSMIMEContext

## Description

## Functions

### camel_smime_context_new ()

    CamelCipherContext *
    camel_smime_context_new (CamelSession *session);

Creates a new sm cipher context object.

#### Parameters

session | session |

#### Returns

a new sm cipher context object.

### camel_smime_context_set_encrypt_key ()

    void
    camel_smime_context_set_encrypt_key (CamelSMIMEContext *context,
                                         gboolean use,
                                         const gchar *key);

### camel_smime_context_set_sign_mode ()

    void
    camel_smime_context_set_sign_mode (CamelSMIMEContext *context,
                                       CamelSMIMESign type);

### camel_smime_context_describe_part ()

    guint32
    camel_smime_context_describe_part (CamelSMIMEContext *context,
                                       struct _CamelMimePart *part);

### camel_smime_context_util_nss_error_to_string ()

    const gchar *
    camel_smime_context_util_nss_error_to_string
                                   (gint nss_error_code);

Utility function to get a localized text description for an error code returned by `PORT_GetError()`.

Note: the function returns always NULL when the library was not compiled with S/MIME support.

#### Parameters

nss_error_code | an error code, as returned by `PORT_GetError()` |

#### Returns

a localized text description of the `nss_error_code` , or NULL, when the code is unknown or the library was not compiled with S/MIME support.

[nullable]

Since: 3.52

## Types and Values

### enum CamelSMIMESign

#### Members

CAMEL_SMIME_SIGN_CLEARSIGN |  |
CAMEL_SMIME_SIGN_ENVELOPED |  |

### enum CamelSMIMEDescribe

#### Members

CAMEL_SMIME_SIGNED |  |
CAMEL_SMIME_ENCRYPTED |  |
CAMEL_SMIME_CERTS |  |
CAMEL_SMIME_CRLS |  |