diff options
author | tedu <> | 2014-05-25 17:32:20 +0000 |
---|---|---|
committer | tedu <> | 2014-05-25 17:32:20 +0000 |
commit | 6ae9a8db3881e4d2383c0a317f7c55a8ad624533 (patch) | |
tree | b94b60044bc156817dd96d9259dc7cc31563cae5 /src | |
parent | 1a9fbbfaaf6f53dfe281955a91870e781ef7efb2 (diff) | |
download | openbsd-6ae9a8db3881e4d2383c0a317f7c55a8ad624533.tar.gz openbsd-6ae9a8db3881e4d2383c0a317f7c55a8ad624533.tar.bz2 openbsd-6ae9a8db3881e4d2383c0a317f7c55a8ad624533.zip |
remove unused shit. from Alexander Schrijver
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1_par.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/asn_mime.c | 2 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/asn1/asn1_par.c | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/asn1/asn_mime.c | 2 | ||||
-rw-r--r-- | src/lib/libssl/src/ssl/ssl_lib.c | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/ssl/ssl_locl.h | 13 | ||||
-rw-r--r-- | src/lib/libssl/ssl_lib.c | 4 | ||||
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 13 |
8 files changed, 4 insertions, 42 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_par.c b/src/lib/libcrypto/asn1/asn1_par.c index 8085d1e570..5480e75720 100644 --- a/src/lib/libcrypto/asn1/asn1_par.c +++ b/src/lib/libcrypto/asn1/asn1_par.c | |||
@@ -138,9 +138,7 @@ asn1_parse2(BIO *bp, const unsigned char **pp, long length, int offset, | |||
138 | while ((p < tot) && (op < p)) { | 138 | while ((p < tot) && (op < p)) { |
139 | op = p; | 139 | op = p; |
140 | j = ASN1_get_object(&p, &len, &tag, &xclass, length); | 140 | j = ASN1_get_object(&p, &len, &tag, &xclass, length); |
141 | #ifdef LINT | 141 | |
142 | j = j; | ||
143 | #endif | ||
144 | if (j & 0x80) { | 142 | if (j & 0x80) { |
145 | if (BIO_write(bp, "Error in encoding\n", 18) <= 0) | 143 | if (BIO_write(bp, "Error in encoding\n", 18) <= 0) |
146 | goto end; | 144 | goto end; |
diff --git a/src/lib/libcrypto/asn1/asn_mime.c b/src/lib/libcrypto/asn1/asn_mime.c index 6ea47dacf8..5d70b76f05 100644 --- a/src/lib/libcrypto/asn1/asn_mime.c +++ b/src/lib/libcrypto/asn1/asn_mime.c | |||
@@ -999,7 +999,7 @@ strip_eol(char *linebuf, int *plen) | |||
999 | int len = *plen; | 999 | int len = *plen; |
1000 | char *p, c; | 1000 | char *p, c; |
1001 | int is_eol = 0; | 1001 | int is_eol = 0; |
1002 | p = linebuf + len - 1; | 1002 | |
1003 | for (p = linebuf + len - 1; len > 0; len--, p--) { | 1003 | for (p = linebuf + len - 1; len > 0; len--, p--) { |
1004 | c = *p; | 1004 | c = *p; |
1005 | if (c == '\n') | 1005 | if (c == '\n') |
diff --git a/src/lib/libssl/src/crypto/asn1/asn1_par.c b/src/lib/libssl/src/crypto/asn1/asn1_par.c index 8085d1e570..5480e75720 100644 --- a/src/lib/libssl/src/crypto/asn1/asn1_par.c +++ b/src/lib/libssl/src/crypto/asn1/asn1_par.c | |||
@@ -138,9 +138,7 @@ asn1_parse2(BIO *bp, const unsigned char **pp, long length, int offset, | |||
138 | while ((p < tot) && (op < p)) { | 138 | while ((p < tot) && (op < p)) { |
139 | op = p; | 139 | op = p; |
140 | j = ASN1_get_object(&p, &len, &tag, &xclass, length); | 140 | j = ASN1_get_object(&p, &len, &tag, &xclass, length); |
141 | #ifdef LINT | 141 | |
142 | j = j; | ||
143 | #endif | ||
144 | if (j & 0x80) { | 142 | if (j & 0x80) { |
145 | if (BIO_write(bp, "Error in encoding\n", 18) <= 0) | 143 | if (BIO_write(bp, "Error in encoding\n", 18) <= 0) |
146 | goto end; | 144 | goto end; |
diff --git a/src/lib/libssl/src/crypto/asn1/asn_mime.c b/src/lib/libssl/src/crypto/asn1/asn_mime.c index 6ea47dacf8..5d70b76f05 100644 --- a/src/lib/libssl/src/crypto/asn1/asn_mime.c +++ b/src/lib/libssl/src/crypto/asn1/asn_mime.c | |||
@@ -999,7 +999,7 @@ strip_eol(char *linebuf, int *plen) | |||
999 | int len = *plen; | 999 | int len = *plen; |
1000 | char *p, c; | 1000 | char *p, c; |
1001 | int is_eol = 0; | 1001 | int is_eol = 0; |
1002 | p = linebuf + len - 1; | 1002 | |
1003 | for (p = linebuf + len - 1; len > 0; len--, p--) { | 1003 | for (p = linebuf + len - 1; len > 0; len--, p--) { |
1004 | c = *p; | 1004 | c = *p; |
1005 | if (c == '\n') | 1005 | if (c == '\n') |
diff --git a/src/lib/libssl/src/ssl/ssl_lib.c b/src/lib/libssl/src/ssl/ssl_lib.c index deef714be1..e607060d42 100644 --- a/src/lib/libssl/src/ssl/ssl_lib.c +++ b/src/lib/libssl/src/ssl/ssl_lib.c | |||
@@ -1765,10 +1765,6 @@ SSL_CTX_new(const SSL_METHOD *meth) | |||
1765 | ret->references = 1; | 1765 | ret->references = 1; |
1766 | ret->quiet_shutdown = 0; | 1766 | ret->quiet_shutdown = 0; |
1767 | 1767 | ||
1768 | /* ret->cipher=NULL; | ||
1769 | ret->master_key=NULL; | ||
1770 | */ | ||
1771 | |||
1772 | ret->info_callback = NULL; | 1768 | ret->info_callback = NULL; |
1773 | 1769 | ||
1774 | ret->app_verify_callback = 0; | 1770 | ret->app_verify_callback = 0; |
diff --git a/src/lib/libssl/src/ssl/ssl_locl.h b/src/lib/libssl/src/ssl/ssl_locl.h index 06f37b69e6..206bd94fc5 100644 --- a/src/lib/libssl/src/ssl/ssl_locl.h +++ b/src/lib/libssl/src/ssl/ssl_locl.h | |||
@@ -515,18 +515,9 @@ typedef struct sess_cert_st { | |||
515 | } SESS_CERT; | 515 | } SESS_CERT; |
516 | 516 | ||
517 | 517 | ||
518 | /*#define MAC_DEBUG */ | ||
519 | |||
520 | /*#define ERR_DEBUG */ | ||
521 | /*#define ABORT_DEBUG */ | ||
522 | /*#define PKT_DEBUG 1 */ | ||
523 | /*#define DES_DEBUG */ | ||
524 | /*#define DES_OFB_DEBUG */ | ||
525 | /*#define SSL_DEBUG */ | 518 | /*#define SSL_DEBUG */ |
526 | /*#define RSA_DEBUG */ | 519 | /*#define RSA_DEBUG */ |
527 | /*#define IDEA_DEBUG */ | ||
528 | 520 | ||
529 | #define FP_ICC (int (*)(const void *,const void *)) | ||
530 | #define ssl_put_cipher_by_char(ssl,ciph,ptr) \ | 521 | #define ssl_put_cipher_by_char(ssl,ciph,ptr) \ |
531 | ((ssl)->method->put_cipher_by_char((ciph),(ptr))) | 522 | ((ssl)->method->put_cipher_by_char((ciph),(ptr))) |
532 | #define ssl_get_cipher_by_char(ssl,ptr) \ | 523 | #define ssl_get_cipher_by_char(ssl,ptr) \ |
@@ -896,8 +887,4 @@ void ssl3_cbc_digest_record(const EVP_MD_CTX *ctx, unsigned char *md_out, | |||
896 | size_t data_plus_mac_plus_padding_size, const unsigned char *mac_secret, | 887 | size_t data_plus_mac_plus_padding_size, const unsigned char *mac_secret, |
897 | unsigned mac_secret_length, char is_sslv3); | 888 | unsigned mac_secret_length, char is_sslv3); |
898 | 889 | ||
899 | void tls_fips_digest_extra(const EVP_CIPHER_CTX *cipher_ctx, | ||
900 | EVP_MD_CTX *mac_ctx, const unsigned char *data, size_t data_len, | ||
901 | size_t orig_len); | ||
902 | |||
903 | #endif | 890 | #endif |
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index deef714be1..e607060d42 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c | |||
@@ -1765,10 +1765,6 @@ SSL_CTX_new(const SSL_METHOD *meth) | |||
1765 | ret->references = 1; | 1765 | ret->references = 1; |
1766 | ret->quiet_shutdown = 0; | 1766 | ret->quiet_shutdown = 0; |
1767 | 1767 | ||
1768 | /* ret->cipher=NULL; | ||
1769 | ret->master_key=NULL; | ||
1770 | */ | ||
1771 | |||
1772 | ret->info_callback = NULL; | 1768 | ret->info_callback = NULL; |
1773 | 1769 | ||
1774 | ret->app_verify_callback = 0; | 1770 | ret->app_verify_callback = 0; |
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 06f37b69e6..206bd94fc5 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -515,18 +515,9 @@ typedef struct sess_cert_st { | |||
515 | } SESS_CERT; | 515 | } SESS_CERT; |
516 | 516 | ||
517 | 517 | ||
518 | /*#define MAC_DEBUG */ | ||
519 | |||
520 | /*#define ERR_DEBUG */ | ||
521 | /*#define ABORT_DEBUG */ | ||
522 | /*#define PKT_DEBUG 1 */ | ||
523 | /*#define DES_DEBUG */ | ||
524 | /*#define DES_OFB_DEBUG */ | ||
525 | /*#define SSL_DEBUG */ | 518 | /*#define SSL_DEBUG */ |
526 | /*#define RSA_DEBUG */ | 519 | /*#define RSA_DEBUG */ |
527 | /*#define IDEA_DEBUG */ | ||
528 | 520 | ||
529 | #define FP_ICC (int (*)(const void *,const void *)) | ||
530 | #define ssl_put_cipher_by_char(ssl,ciph,ptr) \ | 521 | #define ssl_put_cipher_by_char(ssl,ciph,ptr) \ |
531 | ((ssl)->method->put_cipher_by_char((ciph),(ptr))) | 522 | ((ssl)->method->put_cipher_by_char((ciph),(ptr))) |
532 | #define ssl_get_cipher_by_char(ssl,ptr) \ | 523 | #define ssl_get_cipher_by_char(ssl,ptr) \ |
@@ -896,8 +887,4 @@ void ssl3_cbc_digest_record(const EVP_MD_CTX *ctx, unsigned char *md_out, | |||
896 | size_t data_plus_mac_plus_padding_size, const unsigned char *mac_secret, | 887 | size_t data_plus_mac_plus_padding_size, const unsigned char *mac_secret, |
897 | unsigned mac_secret_length, char is_sslv3); | 888 | unsigned mac_secret_length, char is_sslv3); |
898 | 889 | ||
899 | void tls_fips_digest_extra(const EVP_CIPHER_CTX *cipher_ctx, | ||
900 | EVP_MD_CTX *mac_ctx, const unsigned char *data, size_t data_len, | ||
901 | size_t orig_len); | ||
902 | |||
903 | #endif | 890 | #endif |