Copyright © 2001 - 2005 SILC Project SILC Project Website | SILC Toolkit Reference Manual Index

SILC Toolkit Reference Manual SILC Core Library SILC Authentication Interface SILC Message Interface SILC Channel Interface SILC Command Interface SILC Notify Interface SILC Status Types SILC Modes SILC ID Interface SILC ID Cache Interface SILC Argument Interface SILC Attributes Interface Packet Protocol Interface SILC Utility Library Basic SILC Types SILC Buffer Interface SILC Buffer Format Interface SILC Hash Table Interface SILC Logging Interface SILC Memory Interface SILC Mutex Interface SILC Thread Interface SILC Network Interface SILC Schedule Interface SILC Socket Interface SILC Protocol Interface SILC Config Interface SILC File Util Interface SILC String Util Interface SILC UTF-8 Interface SILC Stringprep Interface SILC Util Interface SILC List Interface SILC Dynamic List Interface SILC VCard Interface SILC Application Utilities SILC MIME Interface SILC Crypto Library Introduction to SILC RNG SILC RNG Interface SILC Cipher API SILC PKCS API SILC PKCS#1 API SILC Hash Interface SILC HMAC Interface SILC SFTP Library SILC SFTP Interface SFTP Filesystems Interface SILC Client Library Using SILC Client Library Tutorial Arguments for command_reply Client Operation SilcStatus Error Arguments in command_reply Client Operation Arguments for notify Client Operation Unicode and UTF-8 Strings in Client Library Client Library Interface Reference SILC Key Exchange Library SILC SKE Interface SKE Status Types SKE Diffie Hellman Groups SKE Payloads SILC Math Library SILC MP Interface SILC Math Interface Resource Links SILC Project Website SILC Protocol Documentation SILC White Paper SILC FAQs
Function silc_mime_parse SYNOPSIS
        bool
        silc_mime_parse(const unsigned char *mime, SilcUInt32 mime_len,
                        char *version, SilcUInt32 version_size,
                        char *content_type, SilcUInt32 content_type_size,
                        char *transfer_encoding,
                        SilcUInt32 transfer_encoding_size,
                        unsigned char **mime_data_ptr,
                        SilcUInt32 *mime_data_len);
DESCRIPTION
        Parses MIME header indicated by `mime' data block of length of
        `mime_len'.  Returns TRUE if the `mime' is valid MIME object.
        Parses from the MIME header the MIME Version (if present) and
        copies it to the `version' pointer if provided, content type
        indicating the data in the MIME object and copies it to the
        `content_type' if provided, and the tranfer encoding (if present)
        indicating the encoding of the data and copies it to the
        `content_transfer_encoding' if provided.

        The pointer to the actual data in the MIME object is saved into
        `mime_data_ptr'.  The pointer is a location in the `mime' and it
        does not allocate or copy anything, ie. the `mime_data_ptr' is a
        pointer to the `mime'.  The `mime_data_len' indicates the length of
        the data without the MIME header.  The caller is responsible of
        NULL terminating the buffers it provides.
NOTES
        This function is deprecated.  Use the SilcMime API instead.
SILC String Utilities SilcStringEncoding silc_pem_encode silc_pem_encode_file silc_pem_decode silc_mime_parse silc_strncat silc_identifier_check silc_identifier_verify silc_channel_name_check silc_channel_name_verify

Copyright © 2001 - 2005 SILC Project SILC Project Website | SILC Toolkit Reference Manual Index