os/ossrv/ssl/libcrypto/src/crypto/store/str_locl.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ssl/libcrypto/src/crypto/store/str_locl.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,124 @@
     1.4 +/* crypto/store/str_locl.h -*- mode:C; c-file-style: "eay" -*- */
     1.5 +/* Written by Richard Levitte (richard@levitte.org) for the OpenSSL
     1.6 + * project 2003.
     1.7 + */
     1.8 +/* ====================================================================
     1.9 + * Copyright (c) 2003 The OpenSSL Project.  All rights reserved.
    1.10 + *
    1.11 + * Redistribution and use in source and binary forms, with or without
    1.12 + * modification, are permitted provided that the following conditions
    1.13 + * are met:
    1.14 + *
    1.15 + * 1. Redistributions of source code must retain the above copyright
    1.16 + *    notice, this list of conditions and the following disclaimer. 
    1.17 + *
    1.18 + * 2. Redistributions in binary form must reproduce the above copyright
    1.19 + *    notice, this list of conditions and the following disclaimer in
    1.20 + *    the documentation and/or other materials provided with the
    1.21 + *    distribution.
    1.22 + *
    1.23 + * 3. All advertising materials mentioning features or use of this
    1.24 + *    software must display the following acknowledgment:
    1.25 + *    "This product includes software developed by the OpenSSL Project
    1.26 + *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
    1.27 + *
    1.28 + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
    1.29 + *    endorse or promote products derived from this software without
    1.30 + *    prior written permission. For written permission, please contact
    1.31 + *    openssl-core@openssl.org.
    1.32 + *
    1.33 + * 5. Products derived from this software may not be called "OpenSSL"
    1.34 + *    nor may "OpenSSL" appear in their names without prior written
    1.35 + *    permission of the OpenSSL Project.
    1.36 + *
    1.37 + * 6. Redistributions of any form whatsoever must retain the following
    1.38 + *    acknowledgment:
    1.39 + *    "This product includes software developed by the OpenSSL Project
    1.40 + *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
    1.41 + *
    1.42 + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
    1.43 + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.44 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    1.45 + * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
    1.46 + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.47 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    1.48 + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    1.49 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    1.50 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
    1.51 + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    1.52 + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
    1.53 + * OF THE POSSIBILITY OF SUCH DAMAGE.
    1.54 + * ====================================================================
    1.55 + *
    1.56 + * This product includes cryptographic software written by Eric Young
    1.57 + * (eay@cryptsoft.com).  This product includes software written by Tim
    1.58 + * Hudson (tjh@cryptsoft.com).
    1.59 + *
    1.60 + */
    1.61 +
    1.62 +#ifndef HEADER_STORE_LOCL_H
    1.63 +#define HEADER_STORE_LOCL_H
    1.64 +
    1.65 +#include <openssl/crypto.h>
    1.66 +#include <openssl/store.h>
    1.67 +
    1.68 +#ifdef  __cplusplus
    1.69 +extern "C" {
    1.70 +#endif
    1.71 +
    1.72 +struct store_method_st
    1.73 +	{
    1.74 +	char *name;
    1.75 +
    1.76 +	/* All the functions return a positive integer or non-NULL for success
    1.77 +	   and 0, a negative integer or NULL for failure */
    1.78 +
    1.79 +	/* Initialise the STORE with private data */
    1.80 +	STORE_INITIALISE_FUNC_PTR init;
    1.81 +	/* Initialise the STORE with private data */
    1.82 +	STORE_CLEANUP_FUNC_PTR clean;
    1.83 +	/* Generate an object of a given type */
    1.84 +	STORE_GENERATE_OBJECT_FUNC_PTR generate_object;
    1.85 +	/* Get an object of a given type.  This function isn't really very
    1.86 +	   useful since the listing functions (below) can be used for the
    1.87 +	   same purpose and are much more general. */
    1.88 +	STORE_GET_OBJECT_FUNC_PTR get_object;
    1.89 +	/* Store an object of a given type. */
    1.90 +	STORE_STORE_OBJECT_FUNC_PTR store_object;
    1.91 +	/* Modify the attributes bound to an object of a given type. */
    1.92 +	STORE_MODIFY_OBJECT_FUNC_PTR modify_object;
    1.93 +	/* Revoke an object of a given type. */
    1.94 +	STORE_HANDLE_OBJECT_FUNC_PTR revoke_object;
    1.95 +	/* Delete an object of a given type. */
    1.96 +	STORE_HANDLE_OBJECT_FUNC_PTR delete_object;
    1.97 +	/* List a bunch of objects of a given type and with the associated
    1.98 +	   attributes. */
    1.99 +	STORE_START_OBJECT_FUNC_PTR list_object_start;
   1.100 +	STORE_NEXT_OBJECT_FUNC_PTR list_object_next;
   1.101 +	STORE_END_OBJECT_FUNC_PTR list_object_end;
   1.102 +	STORE_END_OBJECT_FUNC_PTR list_object_endp;
   1.103 +	/* Store-level function to make any necessary update operations. */
   1.104 +	STORE_GENERIC_FUNC_PTR update_store;
   1.105 +	/* Store-level function to get exclusive access to the store. */
   1.106 +	STORE_GENERIC_FUNC_PTR lock_store;
   1.107 +	/* Store-level function to release exclusive access to the store. */
   1.108 +	STORE_GENERIC_FUNC_PTR unlock_store;
   1.109 +
   1.110 +	/* Generic control function */
   1.111 +	STORE_CTRL_FUNC_PTR ctrl;
   1.112 +	};
   1.113 +
   1.114 +struct store_st
   1.115 +	{
   1.116 +	const STORE_METHOD *meth;
   1.117 +	/* functional reference if 'meth' is ENGINE-provided */
   1.118 +	ENGINE *engine;
   1.119 +
   1.120 +	CRYPTO_EX_DATA ex_data;
   1.121 +	int references;
   1.122 +	};
   1.123 +#ifdef  __cplusplus
   1.124 +}
   1.125 +#endif
   1.126 +
   1.127 +#endif