48 lines
969 B
Bash
48 lines
969 B
Bash
ls
|
|
。ã€./linux
|
|
./linux
|
|
exit
|
|
ls
|
|
./init.sh
|
|
exit
|
|
gcc -o linux linux.c -lpthread -lssl -lcrypto
|
|
gcc -o linux linux.c -lpthread -lssl -lcrypto
|
|
gcc -o linux linux.c -lpthread -lssl -lcrypto
|
|
./linux
|
|
openssl ecparam -name SM2 -genkey -noout -out sm2_key.pem
|
|
openssl ec -in sm2_key.pem -pubout -out sm2_pub.pem
|
|
ll
|
|
ls
|
|
cat sm2_key.pem
|
|
ls
|
|
exit
|
|
gcc client.c -o client -lssl -lcrypto
|
|
openssl version
|
|
openssl-devel version
|
|
yum install -y openssl-devel
|
|
find /usr/include/openssl -name sm4.h
|
|
which openssl
|
|
find /usr/bin/openssl -name sm4.h
|
|
find /usr/bin/openssl/ -name sm4.h
|
|
cd /usr/bin/openssl
|
|
wget https://www.openssl.org/source/openssl-3.0.12.tar.gz
|
|
yum install wget
|
|
wget https://www.openssl.org/source/openssl-3.0.12.tar.gz
|
|
find / -name sm4.h
|
|
cd /
|
|
ls
|
|
find / -name sm4.h
|
|
cd /usr/include/
|
|
ll
|
|
ls
|
|
ls
|
|
ls -l
|
|
exit
|
|
ll
|
|
alias ll 'ls -l'
|
|
alias 'll' 'ls -l'
|
|
alias ll 'ls -l'
|
|
alias 'ls -l' ll
|
|
gcc -o server server.c -lpthread -L/usr/local/lib -I/usr/local/include -lgmssl -lpthread -lz
|
|
exit
|