Changeset c1dfc02 in freewrt


Ignore:
Timestamp:
Jul 6, 2007, 3:08:43 PM (18 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
ae03d20
Parents:
cf8530d
Message:
  • unify the opensslconf.h files by wish of wbx@ and tweak them a little for the specific architectures this is 32-bit only; 64-bit targets will fail
  • fix a pointer-to-function conversion issue

git-svn-id: svn://www.freewrt.org/trunk/freewrt@3158 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
package/openssl
Files:
2 deleted
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • package/openssl/Makefile

    rcf8530d rc1dfc02  
    99PKG_NAME:=              openssl
    1010PKG_VERSION:=           0.9.8e
    11 PKG_RELEASE:=           8
     11PKG_RELEASE:=           9
    1212PKG_MD5SUM:=            3a7ff24f6ea5cd711984722ad654b927
    1313
  • package/openssl/extra/bsd/libcrypto/Makefile

    rcf8530d rc1dfc02  
    9090        ${LCRYPTO_SRC}/store ${LCRYPTO_SRC}/txt_db ${LCRYPTO_SRC}/ui \
    9191        ${LCRYPTO_SRC}/x509 ${LCRYPTO_SRC}/x509v3 ${LCRYPTO_SRC}/camellia \
    92         ${LCRYPTO_SRC} ${.CURDIR}/arch/${MACHINE_ARCH} \
     92        ${LCRYPTO_SRC} ${.CURDIR} \
    9393        ${LCRYPTO_SRC}/bn/asm ${LCRYPTO_SRC}/mdc2 ${LCRYPTO_SRC}/rc5
    9494
     
    158158        ${.CURDIR}/fips.h \
    159159        ${.CURDIR}/fips_rand.h \
    160         ${.CURDIR}/arch/${MACHINE_ARCH}/opensslconf.h \
     160        ${.CURDIR}/opensslconf.h \
    161161        ${.OBJDIR}/obj_mac.h
    162162HDRSRC= ${SSL_SRC}
  • package/openssl/extra/bsd/libcrypto/opensslconf.h

    rcf8530d rc1dfc02  
    1 /* XXX adjust for arm */
     1/* tweaked manually; 32-bit platforms only */
     2
    23
    34/* opensslconf.h */
     
    6263 * - elder Alpha because it lacks byte load/store instructions;
    6364 */
    64 #define RC4_INT unsigned char
     65#define RC4_INT unsigned int
    6566#endif
    6667#if !defined(RC4_CHUNK)
     
    102103/* if this is defined data[i] is used instead of *data, this is a %20
    103104 * speedup on x86 */
     105#if defined(i386) || defined(__i386__)
     106#define RC4_INDEX
     107#else
    104108#undef RC4_INDEX
     109#endif
    105110#endif
    106111
     
    116121 * protected undef/define */
    117122#ifndef DES_PTR
    118 #undef DES_PTR
     123#define DES_PTR
    119124#endif
    120125
     
    123128 * registers */
    124129#ifndef DES_RISC1
     130#if defined(i386) || defined(__i386__) || defined(__sparc__)
     131#define DES_RISC1
     132#else
    125133#undef DES_RISC1
     134#endif
    126135#endif
    127136
    128137#ifndef DES_RISC2
     138#if defined(i386) || defined(__i386__) || defined(__sparc__)
    129139#undef DES_RISC2
     140#else
     141#define DES_RISC2
     142#endif
    130143#endif
    131144
  • package/openssl/patches/patch-crypto_engine_eng_cryptodev_c

    rcf8530d rc1dfc02  
    11$FreeWRT$
    22--- openssl-0.9.8e.orig/crypto/engine/eng_cryptodev.c   2004-06-15 13:45:42.000000000 +0200
    3 +++ openssl-0.9.8e/crypto/engine/eng_cryptodev.c        2007-07-05 16:51:54.000000000 +0200
     3+++ openssl-0.9.8e/crypto/engine/eng_cryptodev.c        2007-07-06 15:06:52.000000000 +0200
     4@@ -100,7 +100,7 @@ static int cryptodev_asym(struct crypt_k
     5 static int cryptodev_bn_mod_exp(BIGNUM *r, const BIGNUM *a,
     6     const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
     7 static int cryptodev_rsa_nocrt_mod_exp(BIGNUM *r0, const BIGNUM *I,
     8-    RSA *rsa);
     9+    RSA *rsa, BN_CTX *cti);
     10 static int cryptodev_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
     11 static int cryptodev_dsa_bn_mod_exp(DSA *dsa, BIGNUM *r, BIGNUM *a,
     12     const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
    413@@ -133,6 +133,7 @@ static struct {
    514        { CRYPTO_DES_CBC,               NID_des_cbc,            8,       8, },
     
    8594                *cipher = NULL;
    8695                break;
     96@@ -756,7 +776,7 @@ err:
     97 }
     98 
     99 static int
     100-cryptodev_rsa_nocrt_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa)
     101+cryptodev_rsa_nocrt_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *cti)
     102 {
     103        int r;
     104        BN_CTX *ctx;
Note: See TracChangeset for help on using the changeset viewer.