3 # Move directories and adjust the parent build.info
4 git mv crypto/serializer crypto/encode_decode
5 git mv providers/implementations/serializers \
6 providers/implementations/encode_decode
8 -e 's|serializers|encode_decode|' \
9 -e 's|serializer|encode_decode|' \
10 crypto/build.info providers/implementations/build.info
12 # Rename files and adjust build.info in the same directory
14 crypto/encode_decode \
15 include/crypto/serializer.h \
16 include/openssl/{de,}serializer* \
17 providers/implementations/encode_decode \
22 | while read filename; do
23 new_filename=$(echo "$filename" \
24 | sed -e 's/OSSL_DESERIALIZE/OSSL_DECODE/g' \
25 -e 's/deserialize/decode/g' \
26 -e 's/OSSL_SERIALIZE/OSSL_ENCODE/g' \
27 -e 's/serialize/encode/g' \
28 -e 's/serdes/endecode/g' )
29 [ "$filename" = "$new_filename" ] || git mv "$filename" "$new_filename"
32 -e 's/DESERIALIZE/DECODE/g' \
33 -e 's/deserialize/decode/g' \
34 -e 's/SERIALIZE/ENCODE/g' \
35 -e 's/serialize/encode/g' \
36 -e 's/serdes/endecode/g' \
37 crypto/encode_decode/build.info \
38 providers/implementations/encode_decode/build.info \
40 test/recipes/04-test_encoder_decoder.t
44 # (additional files in sed command aren't caught by the big grep)
45 git grep -l -E 'OSSL_(OP_|FUNC_)?(DE)?SERIALIZER' \
47 -e 's/DESERIALIZE/DECODE/g;' \
48 -e 's/Deserialize/Decode/g;' \
49 -e 's/deserialize/decode/g;' \
50 -e 's/Deserializing/Decoding/g;' \
51 -e 's/deserializing/decoding/g;' \
52 -e 's/Deserialization/Decoding/g;' \
53 -e 's/deserialization/decoding/g;' \
54 -e 's/\bDESER(_|\b)/DECODER$1/g;' \
55 -e 's/\bdeser(_|\b)/decoder$1/g;' \
56 -e 's/SERIALIZE/ENCODE/g;' \
57 -e 's/Serialize/Encode/g;' \
58 -e 's/serialize/encode/g;' \
59 -e 's/Serializing/Encoding/g;' \
60 -e 's/serializing/encoding/g;' \
61 -e 's/Serialization/Encoding/g;' \
62 -e 's/serialization/encoding/g;' \
63 -e 's/\bSER(_|\b)/ENCODER$1/g;' \
64 -e 's/\bser(_|\b)/encoder$1/g;' \
65 -e 's/\bserprop\b/encprop/g;' \
66 -e 's/\bsctx\b/ectx/g;' \
67 crypto/property/property_parse.c \
68 doc/man1/openssl-list.pod.in \
69 doc/man7/OSSL_PROVIDER-FIPS.pod \
70 doc/man7/provider*.pod \
71 include/internal/cryptlib.h \
73 providers/implementations/encode_decode/*.[ch] \
74 providers/implementations/include/prov/implementations.h
76 # Remove unnecessary inclusions (if they were necessary, the Big API rename
77 # would have renamed them properly
78 git grep -l -E '<openssl/(de)?serializer\.h>' \
80 -e '/<openssl\/(de)?serializer\.h>/d'
82 # Adjust a few files that have columns
83 cat crypto/err/openssl.ec | while read line; do
86 if [ "$1" = "L" ]; then
87 printf "L %-13s %-31s %s\n" $2 $3 $4
92 done > crypto/err/openssl.ec.new
93 mv crypto/err/openssl.ec.new crypto/err/openssl.ec
95 cat util/libcrypto.num | while read sym num version info; do
96 printf '%-39s %s\t%s\t%s\n' "$sym" "$num" "$version" "$info"
97 done > util/libcrypto.num.new
98 mv util/libcrypto.num.new util/libcrypto.num
100 cat util/other.syms | while read sym rest; do
101 if [ "$sym" = "#" ]; then
102 if [ -n "$rest" ]; then
108 printf '%-39s %s\n' "$sym" "$rest"
110 done > util/other.syms.new
111 mv util/other.syms.new util/other.syms