浏览代码

Update header to satisfy Swift bindings

Marcin Krzyżanowski 11 年之前
父节点
当前提交
9cedffe9a1
共有 7 个文件被更改,包括 7 次插入2 次删除
  1. 5 0
      build.sh
  2. 1 1
      include-ios/openssl/rsa.h
  3. 1 1
      include-osx/openssl/rsa.h
  4. 二进制
      lib-ios/libcrypto.a
  5. 二进制
      lib-ios/libssl.a
  6. 二进制
      lib-osx/libcrypto.a
  7. 二进制
      lib-osx/libssl.a

+ 5 - 0
build.sh

@@ -46,6 +46,11 @@ build()
    tar xfz "openssl-${OPENSSL_VERSION}.tar.gz"
    pushd .
    cd "openssl-${OPENSSL_VERSION}"
+
+   #fix header for Swift
+
+   sed -ie "s/BIGNUM \*I,/BIGNUM \*i,/g" crypto/rsa/rsa.h
+
    if [ "$TYPE" == "ios" ]; then
       # IOS
       if [ "$ARCH" == "x86_64" ]; then

+ 1 - 1
include-ios/openssl/rsa.h

@@ -97,7 +97,7 @@ struct rsa_meth_st
 	int (*rsa_priv_dec)(int flen,const unsigned char *from,
 			    unsigned char *to,
 			    RSA *rsa,int padding);
-	int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *I,RSA *rsa,BN_CTX *ctx); /* Can be null */
+	int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *i,RSA *rsa,BN_CTX *ctx); /* Can be null */
 	int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
 			  const BIGNUM *m, BN_CTX *ctx,
 			  BN_MONT_CTX *m_ctx); /* Can be null */

+ 1 - 1
include-osx/openssl/rsa.h

@@ -97,7 +97,7 @@ struct rsa_meth_st
 	int (*rsa_priv_dec)(int flen,const unsigned char *from,
 			    unsigned char *to,
 			    RSA *rsa,int padding);
-	int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *I,RSA *rsa,BN_CTX *ctx); /* Can be null */
+	int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *i,RSA *rsa,BN_CTX *ctx); /* Can be null */
 	int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
 			  const BIGNUM *m, BN_CTX *ctx,
 			  BN_MONT_CTX *m_ctx); /* Can be null */

二进制
lib-ios/libcrypto.a


二进制
lib-ios/libssl.a


二进制
lib-osx/libcrypto.a


二进制
lib-osx/libssl.a