openssl_util.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright 2003-2004 The Apache Software Foundation.
00003  *
00004  *   Licensed under the Apache License, Version 2.0 (the "License");
00005  *   you may not use this file except in compliance with the License.
00006  *   You may obtain a copy of the License at
00007  *
00008  *       http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  *   Unless required by applicable law or agreed to in writing, software
00011  *   distributed under the License is distributed on an "AS IS" BASIS,
00012  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  *   See the License for the specific language governing permissions and
00014  *   limitations under the License.
00015  */
00016 
00017 #include<openssl/evp.h>
00018 #include<oxs_buffer.h>
00019 #include<openssl_cipher_property.h>
00020 
00025 #ifndef OPENSSL_UTIL_H
00026 #define OPENSSL_UTIL_H
00027 
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031 
00037     /*Generate a random sgtring.*/
00038     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00039     openssl_generate_random_data(const axutil_env_t *env, oxs_buffer_t *buffer, int size);
00040 
00041     /*Get the cipher property for a given cipher name
00042       @see openssl_cipher_property.h*/
00043     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00044     openssl_populate_cipher_property(const axutil_env_t *env, openssl_cipher_property_t *cprop);
00045 
00046     /*Get a cipher for a given name*/
00047     AXIS2_EXTERN EVP_CIPHER*  AXIS2_CALL
00048     openssl_get_evp_cipher_by_name(const axutil_env_t *env, axis2_char_t *cipher_name);
00049 
00050 
00051     /* @} */
00052 #ifdef __cplusplus
00053 }
00054 #endif
00055 
00056 #endif    /* OPENSSL_UTIL_H */

Generated on Wed Oct 14 01:02:15 2009 for Rampart/C by  doxygen 1.5.7.1