File/plugins/smime/functions.php

Description

NaSMail S/MIME plugin Copyright (c) 2007 The NaSMail Project This file is part of NaSMail smime plugin.

This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

  • version: $Id: functions.php 1043 2007-12-05 18:12:49Z tokul $
Functions
smime_add_cert_data (line 204)

Reads

void smime_add_cert_data ( &$output, array $cert_data, array $output)
  • array $output
  • array $cert_data: openssl_x509_parse results
  • &$output
smime_check_email (line 182)

Compares email address with address used on signature

Evaluation is case insensitive.

  • return: true = match, false = does not match, -1 = dunno
boolean|integer smime_check_email (array $cert_details, string $email)
  • array $cert_details
  • string $email
smime_decrypt_do (line 117)

Adds links to decrypt S/MIME messages.

void smime_decrypt_do ( &$args, array $args)
  • array $args: Hook arguments
  • &$args
smime_print_backlink (line 145)

Prints table with link to original message

string smime_print_backlink ([string $title = ''])
  • string $title: Title printed before "View message"
smime_print_openssl_errors (line 291)

Checks for OpenSSL errors and prints them in error_box

void smime_print_openssl_errors ()
smime_signature_do (line 42)

Verifies S/MIME message signatures and adds attachment information

[0] => hook name [1] => hook actions array[action name][text] = 'link name' array[action name][href] = 'link' [2] => startMessage [3] => message id [4] => mailbox [5] => message part id [6] => download url [7] => filename [8] => [9] =>

void smime_signature_do ( &$args, array $args)
  • array $args
  • &$args

Documentation generated on Sun, 22 Nov 2009 17:36:32 +0200 by phpDocumentor 1.4.3