diff options
author | 2014-05-25 17:32:20 +0000 | |
---|---|---|
committer | 2014-05-25 17:32:20 +0000 | |
commit | 0fe6bc7f91623ce87275744dd2d8a5df86aa6f97 (patch) | |
tree | fdee676c12575ea1d0ad9622503b37fe403f5251 /lib/libcrypto | |
parent | define LIBRESSL_INTERNAL, and use it to hide the bad stuff from ourselves (diff) | |
download | wireguard-openbsd-0fe6bc7f91623ce87275744dd2d8a5df86aa6f97.tar.xz wireguard-openbsd-0fe6bc7f91623ce87275744dd2d8a5df86aa6f97.zip |
remove unused shit. from Alexander Schrijver
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/asn1/asn1_par.c | 4 | ||||
-rw-r--r-- | lib/libcrypto/asn1/asn_mime.c | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/libcrypto/asn1/asn1_par.c b/lib/libcrypto/asn1/asn1_par.c index 8085d1e5704..5480e757203 100644 --- a/lib/libcrypto/asn1/asn1_par.c +++ b/lib/libcrypto/asn1/asn1_par.c @@ -138,9 +138,7 @@ asn1_parse2(BIO *bp, const unsigned char **pp, long length, int offset, while ((p < tot) && (op < p)) { op = p; j = ASN1_get_object(&p, &len, &tag, &xclass, length); -#ifdef LINT - j = j; -#endif + if (j & 0x80) { if (BIO_write(bp, "Error in encoding\n", 18) <= 0) goto end; diff --git a/lib/libcrypto/asn1/asn_mime.c b/lib/libcrypto/asn1/asn_mime.c index 6ea47dacf87..5d70b76f058 100644 --- a/lib/libcrypto/asn1/asn_mime.c +++ b/lib/libcrypto/asn1/asn_mime.c @@ -999,7 +999,7 @@ strip_eol(char *linebuf, int *plen) int len = *plen; char *p, c; int is_eol = 0; - p = linebuf + len - 1; + for (p = linebuf + len - 1; len > 0; len--, p--) { c = *p; if (c == '\n') |