diff options
author | Adam Vartanian <flooey@google.com> | 2017-05-04 12:11:30 +0100 |
---|---|---|
committer | Adam Vartanian <flooey@google.com> | 2017-05-05 09:22:58 +0100 |
commit | 22051136d1344e34c05659420bc49372040bd75e (patch) | |
tree | 2990e0823f36668bfdd96c999691a497a6fcdeff /tools/docs/crypto/crypto_docs.py | |
parent | 23e6c0a6f0bf53ce45c034eaf8de5c2ec2b86bb3 (diff) |
Add SSLEngine and SSLSocket cipher suite docs to autodocs.
Bug: 35793879
Test: Executed, replaced tables in Javadoc
Change-Id: I9c0c857f2facc4b724b8c95b773c73f4060e18bd
Diffstat (limited to 'tools/docs/crypto/crypto_docs.py')
-rw-r--r-- | tools/docs/crypto/crypto_docs.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/docs/crypto/crypto_docs.py b/tools/docs/crypto/crypto_docs.py index d1f220dc87..482e38e9d4 100644 --- a/tools/docs/crypto/crypto_docs.py +++ b/tools/docs/crypto/crypto_docs.py @@ -29,3 +29,11 @@ def load_json(filename): data = json.loads(stripped_contents) f.close() return data + + +def find_by_name(seq, name): + """Returns the first element in seq with the given name.""" + for item in seq: + if item['name'] == name: + return item + return None |