Skip to content

Commit

Permalink
plan9: add targets to compile sm4
Browse files Browse the repository at this point in the history
  • Loading branch information
lufia committed Apr 29, 2019
1 parent 9df4ce8 commit 3160fe9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ include/openssl/*.h
/crypto/sha/*
!/crypto/sm3
/crypto/sm3/*
!/crypto/sm4
/crypto/sm4/*
!/crypto/stack
/crypto/stack/*
!/crypto/ts
Expand Down
1 change: 1 addition & 0 deletions crypto/mkfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ DIRS=\
rsa\
sha\
sm3\
sm4\
stack\
ts\
txt_db\
Expand Down
12 changes: 12 additions & 0 deletions crypto/sm4/mkfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
</sys/src/ape/config
ROOT=../..
<$ROOT/mkfile.proto

CFLAGS=$CFLAGS -I.. -c

CFILES=`{ls *.c}
OFILES=${CFILES:%.c=%.$O}
LIB=/$objtype/lib/ape/libcrypto.a
</sys/src/cmd/mklib
6 changes: 3 additions & 3 deletions update.rc
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ copy_hdrs $libcrypto_src stack/stack.h lhash/lhash.h stack/safestack.h \
objects/objects.h asn1/asn1.h bn/bn.h ec/ec.h ecdsa/ecdsa.h \
ecdh/ecdh.h rsa/rsa.h sha/sha.h x509/x509_vfy.h pkcs7/pkcs7.h pem/pem.h \
pem/pem2.h hkdf/hkdf.h hmac/hmac.h rand/rand.h md5/md5.h \
asn1/asn1_mac.h x509v3/x509v3.h conf/conf.h ocsp/ocsp.h \
x509v3/x509v3.h conf/conf.h ocsp/ocsp.h \
aes/aes.h modes/modes.h asn1/asn1t.h dso/dso.h bf/blowfish.h \
bio/bio.h cast/cast.h cmac/cmac.h conf/conf_api.h des/des.h dh/dh.h \
dsa/dsa.h engine/engine.h ui/ui.h pkcs12/pkcs12.h ts/ts.h \
md4/md4.h ripemd/ripemd.h whrlpool/whrlpool.h idea/idea.h \
rc2/rc2.h rc4/rc4.h ui/ui_compat.h txt_db/txt_db.h \
chacha/chacha.h evp/evp.h poly1305/poly1305.h camellia/camellia.h \
gost/gost.h curve25519/curve25519.h
sm3/sm3.h sm4/sm4.h chacha/chacha.h evp/evp.h poly1305/poly1305.h \
camellia/camellia.h gost/gost.h curve25519/curve25519.h
copy_hdrs $libssl_src srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h
Expand Down

0 comments on commit 3160fe9

Please sign in to comment.