Format files and add license comment
Changes to pass tests/scripts/check_files.py -Add missing new line at end of each file -Remove any trailing whitespaces -Added file shebang comments Added license info and purpose of file descriptions. The 2 test_translate... files may not be stay later down the line, but incase they do become permanent, it is good to add the appropriate comments now. Signed-off-by: Joe Subbiani <joe.subbiani@arm.com>
This commit is contained in:
parent
29239b00a6
commit
a16ccac1d9
3 changed files with 89 additions and 6 deletions
|
@ -1,3 +1,34 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
# translate_ciphers.py
|
||||
#
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Purpose
|
||||
#
|
||||
# Translate ciphersuite names in MBedTLS format to OpenSSL and GNU
|
||||
# standards.
|
||||
#
|
||||
# Format and analyse strings past in via input arguments to match
|
||||
# the expected strings utilised in compat.sh.
|
||||
#
|
||||
# sys.argv[1] should be "g" or "o" for GNU or OpenSSL.
|
||||
# sys.argv[2] should be a string containing one or more
|
||||
# ciphersuite names.
|
||||
|
||||
import re
|
||||
import sys
|
||||
|
||||
|
@ -91,8 +122,8 @@ def main():
|
|||
elif sys.argv[1] == "o":
|
||||
print(format_o(sys.argv[2]))
|
||||
exit(0)
|
||||
else:
|
||||
else:
|
||||
exit(1)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue