commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1166314 - /commons/sandbox/runtime/trunk/src/main/native/modules/openssl/api.c
Date Wed, 07 Sep 2011 18:54:29 GMT
Author: mturk
Date: Wed Sep  7 18:54:29 2011
New Revision: 1166314

URL: http://svn.apache.org/viewvc?rev=1166314&view=rev
Log:
Axe param names from function pointers

Modified:
    commons/sandbox/runtime/trunk/src/main/native/modules/openssl/api.c

Modified: commons/sandbox/runtime/trunk/src/main/native/modules/openssl/api.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/modules/openssl/api.c?rev=1166314&r1=1166313&r2=1166314&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/modules/openssl/api.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/modules/openssl/api.c Wed Sep  7 18:54:29
2011
@@ -85,7 +85,7 @@ struct SSLAPIst {
     BIO_METHOD*         (*fpBIO_s_file)(void);
 
     /*** BIGNUM   ***/
-    BIGNUM*             (*fpBN_bin2bn)(const unsigned char *s, int len, BIGNUM *ret);
+    BIGNUM*             (*fpBN_bin2bn)(const unsigned char *, int, BIGNUM *);
 
     /*** CRYPTO   ***/
     int                 (*fpCRYPTO_num_locks)(void);
@@ -101,55 +101,55 @@ struct SSLAPIst {
     void                (*fpDH_free)(DH *dh);
 
     /*** ENGINE   ***/
-    ENGINE*             (*fpENGINE_by_id)(const char *id);
-    int                 (*fpENGINE_ctrl)(ENGINE *e, int cmd, long i, void *p, void (*f)(void));
-    int                 (*fpENGINE_ctrl_cmd)(ENGINE *e, const char *cmd_name, long i, void
*p, void (*f)(void), int cmd_optional);
-    int                 (*fpENGINE_ctrl_cmd_string)(ENGINE *e, const char *cmd_name, const
char *arg, int cmd_optional);
+    ENGINE*             (*fpENGINE_by_id)(const char *);
+    int                 (*fpENGINE_ctrl)(ENGINE *, int, long, void *, void (*)(void));
+    int                 (*fpENGINE_ctrl_cmd)(ENGINE *, const char *, long, void *, void (*)(void),
int);
+    int                 (*fpENGINE_ctrl_cmd_string)(ENGINE *, const char *, const char *,
int);
     
-    int                 (*fpENGINE_free)(ENGINE *e);
+    int                 (*fpENGINE_free)(ENGINE *);
     void                (*fpENGINE_load_builtin_engines)(void);
     int                 (*fpENGINE_register_all_complete)(void);
-    int                 (*fpENGINE_set_default)(ENGINE *e, unsigned int flags);
+    int                 (*fpENGINE_set_default)(ENGINE *, unsigned int);
 
     /*** ERR      ***/
-    void                (*fpERR_error_string_n)(unsigned long e, char *buf, size_t len);
+    void                (*fpERR_error_string_n)(unsigned long, char *, size_t);
     unsigned long       (*fpERR_get_error)(void);
     void                (*fpERR_load_crypto_strings)(void);
     unsigned long       (*fpERR_peek_error)(void);
 
     /*** MD5      ***/
-    int                 (*fpMD5_Final)(unsigned char *md, MD5_CTX *c);
-    int                 (*fpMD5_Init)(MD5_CTX *c);
-    int                 (*fpMD5_Update)(MD5_CTX *c, const void *data, size_t len);
+    int                 (*fpMD5_Final)(unsigned char *, MD5_CTX *);
+    int                 (*fpMD5_Init)(MD5_CTX *);
+    int                 (*fpMD5_Update)(MD5_CTX *, const void *, size_t);
 
     /*** OPENSSL  ***/
     void                (*fpOPENSSL_load_builtin_modules)(void);
 
     /*** PEM      ***/
-    DH*                 (*fpPEM_read_bio_DHparams)(BIO *bp, DH **x, pem_password_cb *cb,
void *u);
-    X509*               (*fpPEM_read_bio_X509)(BIO *bp, X509 **x, pem_password_cb *cb, void
*u);
+    DH*                 (*fpPEM_read_bio_DHparams)(BIO *, DH **, pem_password_cb *, void
*);
+    X509*               (*fpPEM_read_bio_X509)(BIO *, X509 **, pem_password_cb *, void *);
 
     /*** RAND     ***/
-    int                 (*fpRAND_egd)(const char *path);
-    const char*         (*fpRAND_file_name)(char *file,size_t num);
-    int                 (*fpRAND_load_file)(const char *file,long max_bytes);
-    void                (*fpRAND_seed)(const void *buf,int num);
+    int                 (*fpRAND_egd)(const char *);
+    const char*         (*fpRAND_file_name)(char *, size_t);
+    int                 (*fpRAND_load_file)(const char *, long);
+    void                (*fpRAND_seed)(const void *, int);
     int                 (*fpRAND_status)(void);
 
     /*** RSA      ***/
-    RSA*                (*fpRSA_generate_key)(int bits, unsigned long e,void (*callback)(int,int,void
*),void *cb_arg);
+    RSA*                (*fpRSA_generate_key)(int, unsigned long , void (*)(int,int,void
*), void *);
     
     /*** SSL_CTX  ***/
-    long                (*fpSSL_CTX_ctrl)(SSL_CTX *ctx,int cmd, long larg, void *parg); 
  
+    long                (*fpSSL_CTX_ctrl)(SSL_CTX *, int, long, void *);
     SSL_CTX*            (*fpSSL_CTX_new)(const SSL_METHOD *);
     void                (*fpSSL_CTX_free)(SSL_CTX *);
     
     /*** SSL      ***/
-    void*               (*fpSSL_get_ex_data)(const SSL *ssl,int idx);
+    void*               (*fpSSL_get_ex_data)(const SSL *, int);
     int                 (*fpSSL_get_ex_new_index)(long, void *, CRYPTO_EX_new *, CRYPTO_EX_dup
*, CRYPTO_EX_free *);
     int                 (*fpSSL_library_init)(void);
     void                (*fpSSL_load_error_strings)(void);
-    int                 (*fpSSL_set_ex_data)(SSL *ssl,int idx,void *data);
+    int                 (*fpSSL_set_ex_data)(SSL *, int, void *);
 
     /*** X509     ***/
     void                (*fpX509_free)(X509 *);
@@ -159,7 +159,7 @@ struct SSLAPIst {
 struct SSLOPTst {
 #if HAVE_FIPS
     int                 (*fpFIPS_mode)(void);
-    int                 (*fpFIPS_mode_set)(int onoff);
+    int                 (*fpFIPS_mode_set)(int);
 #endif
 #if HAVE_OCSP
 



Mime
View raw message