Some constification and stacks that slipped through the cracks (how?).
[openssl.git] / crypto / rsa / rsa.h
index 2f53ff04b9e065352d5755da613d7c5ad8ec5608..11f66b65f01a3dffaf4ac44b05d2a7e537af835e 100644 (file)
@@ -84,8 +84,9 @@ typedef struct rsa_meth_st
        int (*rsa_priv_dec)(int flen,unsigned char *from,unsigned char *to,
                            RSA *rsa,int padding);
        int (*rsa_mod_exp)(BIGNUM *r0,BIGNUM *I,RSA *rsa); /* Can be null */
-       int (*bn_mod_exp)(BIGNUM *r, BIGNUM *a, BIGNUM *p, BIGNUM *m,
-                         BN_CTX *ctx,BN_MONT_CTX *m_ctx); /* Can be null */
+       int (*bn_mod_exp)(BIGNUM *r, BIGNUM *a, const BIGNUM *p,
+                         const BIGNUM *m, BN_CTX *ctx,
+                         BN_MONT_CTX *m_ctx); /* Can be null */
        int (*init)(RSA *rsa);          /* called at new */
        int (*finish)(RSA *rsa);        /* called at free */
        int flags;                      /* RSA_METHOD_FLAG_* things */
@@ -145,7 +146,7 @@ RSA *       RSA_new(void);
 RSA *  RSA_new_method(RSA_METHOD *method);
 int    RSA_size(RSA *);
 RSA *  RSA_generate_key(int bits, unsigned long e,void
-               (*callback)(int,int,char *),char *cb_arg);
+               (*callback)(int,int,void *),void *cb_arg);
        /* next 4 return -1 on error */
 int    RSA_public_encrypt(int flen, unsigned char *from,
                unsigned char *to, RSA *rsa,int padding);