You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2006/08/07 06:59:53 UTC

svn commit: r429240 - in /webservices/axis2/trunk/c/rampart/include: openssl_cipher_property.h openssl_util.h oxs_key.h rampart_crypto_engine.h

Author: damitha
Date: Sun Aug  6 21:59:53 2006
New Revision: 429240

URL: http://svn.apache.org/viewvc?rev=429240&view=rev
Log:
Adding files for openssl wrapper

Added:
    webservices/axis2/trunk/c/rampart/include/openssl_cipher_property.h
    webservices/axis2/trunk/c/rampart/include/openssl_util.h
Modified:
    webservices/axis2/trunk/c/rampart/include/oxs_key.h
    webservices/axis2/trunk/c/rampart/include/rampart_crypto_engine.h

Added: webservices/axis2/trunk/c/rampart/include/openssl_cipher_property.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/openssl_cipher_property.h?rev=429240&view=auto
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/openssl_cipher_property.h (added)
+++ webservices/axis2/trunk/c/rampart/include/openssl_cipher_property.h Sun Aug  6 21:59:53 2006
@@ -0,0 +1,61 @@
+/*
+ *   Copyright 2003-2004 The Apache Software Foundation.
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ */
+
+#include<openssl/evp.h>
+#include<oxs_buffer.h>
+
+/**
+  * @file 
+  * @brief 
+  */
+#ifndef OPENSSL_CIPHER_PROPERTY_H
+#define OPENSSL_CIPHER_PROPERTY_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct _openssl_evp_block_cipher_property cipher_prop, *cipher_prop_ptr;
+
+struct _openssl_evp_block_cipher_property {
+    EVP_CIPHER*   cipher;
+    axis2_char_t *name;
+    int         key_size;
+    int         block_size;
+    int         iv_size;
+};
+
+
+/**
+* Create a fresh block cipher property
+*@return cipher_prop_ptr
+*/
+AXIS2_EXTERN cipher_prop_ptr AXIS2_CALL
+openssl_cipher_property_create(const axis2_env_t *env);
+
+
+/*TODO write the free function*/
+AXIS2_EXTERN axis2_status_t AXIS2_CALL  
+openssl_cipher_property_free(const axis2_env_t *env );
+
+
+
+/* @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif    /* OPENSSL_CIPHER_PROPERTY_H */

Added: webservices/axis2/trunk/c/rampart/include/openssl_util.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/openssl_util.h?rev=429240&view=auto
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/openssl_util.h (added)
+++ webservices/axis2/trunk/c/rampart/include/openssl_util.h Sun Aug  6 21:59:53 2006
@@ -0,0 +1,46 @@
+/*
+ *   Copyright 2003-2004 The Apache Software Foundation.
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ */
+
+#include<openssl/evp.h>
+#include<oxs_buffer.h>
+#include<openssl_cipher_property.h>
+
+/**
+  * @file 
+  * @brief 
+  */
+#ifndef OPENSSL_UTIL_H
+#define OPENSSL_UTIL_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+/*Get the cipher property for a given cipher name
+  @see openssl_cipher_property.h*/
+AXIS2_EXTERN cipher_prop_ptr  AXIS2_CALL
+openssl_get_cipher_property(const axis2_env_t *env, axis2_char_t *cipher_name);
+
+/*Get a cipher for a given name*/
+AXIS2_EXTERN EVP_CIPHER*  AXIS2_CALL
+openssl_get_evp_cipher_by_name(const axis2_env_t *env, axis2_char_t *cipher_name);
+
+
+/* @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif    /* OPENSSL_UTIL_H */

Modified: webservices/axis2/trunk/c/rampart/include/oxs_key.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/oxs_key.h?rev=429240&r1=429239&r2=429240&view=diff
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/oxs_key.h (original)
+++ webservices/axis2/trunk/c/rampart/include/oxs_key.h Sun Aug  6 21:59:53 2006
@@ -26,6 +26,7 @@
 #include <axis2_defines.h>
 #include <oxs_constants.h>
 #include <axis2_env.h>
+
 #ifdef __cplusplus
 extern "C"
 {

Modified: webservices/axis2/trunk/c/rampart/include/rampart_crypto_engine.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/rampart_crypto_engine.h?rev=429240&r1=429239&r2=429240&view=diff
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/rampart_crypto_engine.h (original)
+++ webservices/axis2/trunk/c/rampart/include/rampart_crypto_engine.h Sun Aug  6 21:59:53 2006
@@ -37,14 +37,16 @@
 rampart_crypto_encrypt_message(const axis2_env_t *env,
                       axis2_msg_ctx_t *msg_ctx,
                       axis2_param_t* param_action,
-                      axiom_soap_envelope_t *soap_envelope );
+                      axiom_soap_envelope_t *soap_envelope,
+                        axiom_node_t *sec_node );
 
 /*Get the message and decrypt*/
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 rampart_crypto_decrypt_message(const axis2_env_t *env,
                        axis2_msg_ctx_t *msg_ctx,
                        axis2_param_t* param_action,
-                      axiom_soap_envelope_t *soap_envelope );
+                      axiom_soap_envelope_t *soap_envelope ,
+                         axiom_node_t *sec_node );
 /* @} */
 #ifdef __cplusplus
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org