boringssl/util
David Benjamin dc9194f78b Fix a bug in obj_dat.pl and add basic crypto/obj tests.
It's not possible to encode an OID with only one component, so some of
the NIDs do not have encodings. The logic to actually encode OIDs checks
for this (before calling der_it), but not the logic to compute the
sorted OID list.

Without this, OBJ_obj2nid, when given an empty OID, returns something
arbitrary based on the binary search implementation instead of
NID_undef.

Change-Id: Ib68bae349f66eff3d193616eb26491b6668d4b0a
Reviewed-on: https://boringssl-review.googlesource.com/7752
Reviewed-by: Steven Valdez <svaldez@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
2016-04-26 15:19:26 +00:00
..
bot Update cmake-linux64.tar.gz and cmake-mac.tar.gz. 2016-03-10 17:23:17 +00:00
32-bit-toolchain.cmake Inital import. 2014-06-20 13:17:32 -07:00
all_tests.go Adding scripts to generate line coverage. 2016-03-03 23:33:48 +00:00
all_tests.json Fix a bug in obj_dat.pl and add basic crypto/obj tests. 2016-04-26 15:19:26 +00:00
doc.config Add hkdf.h to doc.config. 2016-04-21 20:25:15 +00:00
doc.css Inital import. 2014-06-20 13:17:32 -07:00
doc.go Have doc.go parse struct comments. 2016-01-26 23:23:23 +00:00
generate_build_files.py Improve generate_build_files.py gn support. 2016-04-22 18:56:55 +00:00
generate-asm-lcov.py Fixing assembly coverage 2016-03-23 18:23:42 +00:00
generate-coverage.sh Adding scripts to generate line coverage. 2016-03-03 23:33:48 +00:00
make_errors.go Markdown-ify BUILDING. 2015-09-03 18:38:21 +00:00
run_android_tests.go Add a copyright header to run_android_tests.go. 2016-04-25 21:55:36 +00:00