Back to index

lightning-sunbird  0.9+nobinonly
prelib.c
Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */
00002 
00003 /*
00004  * Functions used by https servers to send (download) pre-encrypted files
00005  * over SSL connections that use Fortezza ciphersuites.
00006  *
00007  * ***** BEGIN LICENSE BLOCK *****
00008  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00009  *
00010  * The contents of this file are subject to the Mozilla Public License Version
00011  * 1.1 (the "License"); you may not use this file except in compliance with
00012  * the License. You may obtain a copy of the License at
00013  * http://www.mozilla.org/MPL/
00014  *
00015  * Software distributed under the License is distributed on an "AS IS" basis,
00016  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00017  * for the specific language governing rights and limitations under the
00018  * License.
00019  *
00020  * The Original Code is the Netscape security libraries.
00021  *
00022  * The Initial Developer of the Original Code is
00023  * Netscape Communications Corporation.
00024  * Portions created by the Initial Developer are Copyright (C) 1994-2000
00025  * the Initial Developer. All Rights Reserved.
00026  *
00027  * Contributor(s):
00028  *
00029  * Alternatively, the contents of this file may be used under the terms of
00030  * either the GNU General Public License Version 2 or later (the "GPL"), or
00031  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00032  * in which case the provisions of the GPL or the LGPL are applicable instead
00033  * of those above. If you wish to allow use of your version of this file only
00034  * under the terms of either the GPL or the LGPL, and not to allow others to
00035  * use your version of this file under the terms of the MPL, indicate your
00036  * decision by deleting the provisions above and replace them with the notice
00037  * and other provisions required by the GPL or the LGPL. If you do not delete
00038  * the provisions above, a recipient may use your version of this file under
00039  * the terms of any one of the MPL, the GPL or the LGPL.
00040  *
00041  * ***** END LICENSE BLOCK ***** */
00042 /* $Id: prelib.c,v 1.7 2005/08/16 03:42:26 nelsonb%netscape.com Exp $ */
00043 
00044 #include "cert.h"
00045 #include "ssl.h"
00046 #include "keyhi.h"
00047 #include "secitem.h"
00048 #include "sslimpl.h"
00049 #include "pkcs11t.h"
00050 #include "preenc.h"
00051 #include "pk11func.h"
00052 
00053 PEHeader *SSL_PreencryptedStreamToFile(PRFileDesc *fd, PEHeader *inHeader, 
00054                                    int *headerSize)
00055 {
00056     PORT_SetError(PR_NOT_IMPLEMENTED_ERROR);
00057     return NULL;
00058 }
00059 
00060 PEHeader *SSL_PreencryptedFileToStream(PRFileDesc *fd, PEHeader *header, 
00061                                                  int *headerSize)
00062 {
00063     PORT_SetError(PR_NOT_IMPLEMENTED_ERROR);
00064     return NULL;
00065 }
00066 
00067