summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/objects/obj_dat.c
diff options
context:
space:
mode:
authorbeck <>2014-04-15 17:46:17 +0000
committerbeck <>2014-04-15 17:46:17 +0000
commit399901082925ad76fc2bd5cd8d351a590f3f2989 (patch)
treec53c25a15cd89988cef641fa18324c5c6db28fed /src/lib/libcrypto/objects/obj_dat.c
parent132a4cce42485cfd13bf12c1213cf1a63b5b1da2 (diff)
downloadopenbsd-399901082925ad76fc2bd5cd8d351a590f3f2989.tar.gz
openbsd-399901082925ad76fc2bd5cd8d351a590f3f2989.tar.bz2
openbsd-399901082925ad76fc2bd5cd8d351a590f3f2989.zip
Send the rotIBM stream cipher (ebcdic) to Valhalla to party for eternity
with the bearded ones... some API's that nobody should be using will dissapear with this commit.
Diffstat (limited to 'src/lib/libcrypto/objects/obj_dat.c')
-rw-r--r--src/lib/libcrypto/objects/obj_dat.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/lib/libcrypto/objects/obj_dat.c b/src/lib/libcrypto/objects/obj_dat.c
index a597284c80..bced796e62 100644
--- a/src/lib/libcrypto/objects/obj_dat.c
+++ b/src/lib/libcrypto/objects/obj_dat.c
@@ -705,22 +705,6 @@ const void *OBJ_bsearch_ex_(const void *key, const void *base_, int num,
705 else 705 else
706 break; 706 break;
707 } 707 }
708#ifdef CHARSET_EBCDIC
709/* THIS IS A KLUDGE - Because the *_obj is sorted in ASCII order, and
710 * I don't have perl (yet), we revert to a *LINEAR* search
711 * when the object wasn't found in the binary search.
712 */
713 if (c != 0)
714 {
715 for (i=0; i<num; ++i)
716 {
717 p= &(base[i*size]);
718 c = (*cmp)(key,p);
719 if (c == 0 || (c < 0 && (flags & OBJ_BSEARCH_VALUE_ON_NOMATCH)))
720 return p;
721 }
722 }
723#endif
724 if (c != 0 && !(flags & OBJ_BSEARCH_VALUE_ON_NOMATCH)) 708 if (c != 0 && !(flags & OBJ_BSEARCH_VALUE_ON_NOMATCH))
725 p = NULL; 709 p = NULL;
726 else if (c == 0 && (flags & OBJ_BSEARCH_FIRST_VALUE_ON_MATCH)) 710 else if (c == 0 && (flags & OBJ_BSEARCH_FIRST_VALUE_ON_MATCH))