|
|
@ -38,7 +38,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
Pod::Spec.new do |s| |
|
|
|
Pod::Spec.new do |s| |
|
|
|
s.name = 'BoringSSL-GRPC' |
|
|
|
s.name = 'BoringSSL-GRPC' |
|
|
|
version = '0.0.1' |
|
|
|
version = '0.0.2' |
|
|
|
s.version = version |
|
|
|
s.version = version |
|
|
|
s.summary = 'BoringSSL is a fork of OpenSSL that is designed to meet Google\'s needs.' |
|
|
|
s.summary = 'BoringSSL is a fork of OpenSSL that is designed to meet Google\'s needs.' |
|
|
|
# Adapted from the homepage: |
|
|
|
# Adapted from the homepage: |
|
|
@ -81,7 +81,7 @@ Pod::Spec.new do |s| |
|
|
|
s.ios.deployment_target = '5.0' |
|
|
|
s.ios.deployment_target = '5.0' |
|
|
|
s.osx.deployment_target = '10.7' |
|
|
|
s.osx.deployment_target = '10.7' |
|
|
|
|
|
|
|
|
|
|
|
name = 'openssl' |
|
|
|
name = 'openssl_grpc' |
|
|
|
|
|
|
|
|
|
|
|
# When creating a dynamic framework, name it openssl.framework instead of BoringSSL.framework. |
|
|
|
# When creating a dynamic framework, name it openssl.framework instead of BoringSSL.framework. |
|
|
|
# This lets users write their includes like `#include <openssl/ssl.h>` as opposed to `#include |
|
|
|
# This lets users write their includes like `#include <openssl/ssl.h>` as opposed to `#include |
|
|
@ -1546,6 +1546,7 @@ Pod::Spec.new do |s| |
|
|
|
sed -i'.back' '/^#define \\([A-Za-z0-9_]*\\) \\1/d' include/openssl/ssl.h |
|
|
|
sed -i'.back' '/^#define \\([A-Za-z0-9_]*\\) \\1/d' include/openssl/ssl.h |
|
|
|
sed -i'.back' 'N;/^#define \\([A-Za-z0-9_]*\\) *\\\\\\n *\\1/d' include/openssl/ssl.h |
|
|
|
sed -i'.back' 'N;/^#define \\([A-Za-z0-9_]*\\) *\\\\\\n *\\1/d' include/openssl/ssl.h |
|
|
|
sed -i'.back' 's/#ifndef md5_block_data_order/#ifndef GRPC_SHADOW_md5_block_data_order/g' crypto/fipsmodule/md5/md5.c |
|
|
|
sed -i'.back' 's/#ifndef md5_block_data_order/#ifndef GRPC_SHADOW_md5_block_data_order/g' crypto/fipsmodule/md5/md5.c |
|
|
|
|
|
|
|
find . -type f \\( -path '*.h' -or -path '*.cc' -or -path '*.c' \\) -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include <openssl/;#include <openssl_grpc/;g' |
|
|
|
END_OF_COMMAND |
|
|
|
END_OF_COMMAND |
|
|
|
|
|
|
|
|
|
|
|
# Redefine symbols to avoid conflict when the same app also depends on OpenSSL. The list of |
|
|
|
# Redefine symbols to avoid conflict when the same app also depends on OpenSSL. The list of |
|
|
|