summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorguenther <>2016-11-04 18:00:12 +0000
committerguenther <>2016-11-04 18:00:12 +0000
commit145c17d7875703f3317c0294c215fc4aa38911a8 (patch)
treee59522907cddd6fbf1b018a0d30a66c424980a41 /src/lib
parent8c6f31f782260e2f6b732ffdcf678b7e6ccb0ff6 (diff)
downloadopenbsd-145c17d7875703f3317c0294c215fc4aa38911a8.tar.gz
openbsd-145c17d7875703f3317c0294c215fc4aa38911a8.tar.bz2
openbsd-145c17d7875703f3317c0294c215fc4aa38911a8.zip
Make do_dtls1_write() static to d1_pkt.c and delete declarations for
three functions that were removed a while ago ok jsing@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/d1_pkt.c6
-rw-r--r--src/lib/libssl/ssl_locl.h8
2 files changed, 6 insertions, 8 deletions
diff --git a/src/lib/libssl/d1_pkt.c b/src/lib/libssl/d1_pkt.c
index 5326a2c3d0..9ea7d5277a 100644
--- a/src/lib/libssl/d1_pkt.c
+++ b/src/lib/libssl/d1_pkt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_pkt.c,v 1.48 2015/09/11 18:08:21 jsing Exp $ */ 1/* $OpenBSD: d1_pkt.c,v 1.49 2016/11/04 18:00:12 guenther Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -126,6 +126,10 @@
126#include "pqueue.h" 126#include "pqueue.h"
127#include "bytestring.h" 127#include "bytestring.h"
128 128
129static int do_dtls1_write(SSL *s, int type, const unsigned char *buf,
130 unsigned int len);
131
132
129/* mod 128 saturating subtract of two 64-bit values in big-endian order */ 133/* mod 128 saturating subtract of two 64-bit values in big-endian order */
130static int 134static int
131satsub64be(const unsigned char *v1, const unsigned char *v2) 135satsub64be(const unsigned char *v1, const unsigned char *v2)
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index b79e9269ce..c3107745c9 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.131 2016/11/03 08:15:22 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.132 2016/11/04 18:00:12 guenther Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -732,8 +732,6 @@ int ssl23_write_bytes(SSL *s);
732int tls1_new(SSL *s); 732int tls1_new(SSL *s);
733void tls1_free(SSL *s); 733void tls1_free(SSL *s);
734void tls1_clear(SSL *s); 734void tls1_clear(SSL *s);
735long tls1_ctrl(SSL *s, int cmd, long larg, void *parg);
736long tls1_callback_ctrl(SSL *s, int cmd, void (*fp)(void));
737 735
738int dtls1_new(SSL *s); 736int dtls1_new(SSL *s);
739int dtls1_accept(SSL *s); 737int dtls1_accept(SSL *s);
@@ -745,8 +743,6 @@ int dtls1_shutdown(SSL *s);
745 743
746long dtls1_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok); 744long dtls1_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok);
747int dtls1_get_record(SSL *s); 745int dtls1_get_record(SSL *s);
748int do_dtls1_write(SSL *s, int type, const unsigned char *buf,
749 unsigned int len);
750int dtls1_dispatch_alert(SSL *s); 746int dtls1_dispatch_alert(SSL *s);
751int dtls1_enc(SSL *s, int snd); 747int dtls1_enc(SSL *s, int snd);
752 748
@@ -774,8 +770,6 @@ int ssl_ok(SSL *s);
774 770
775int ssl_check_srvr_ecc_cert_and_alg(X509 *x, SSL *s); 771int ssl_check_srvr_ecc_cert_and_alg(X509 *x, SSL *s);
776 772
777SSL_COMP *ssl3_comp_find(STACK_OF(SSL_COMP) *sk, int n);
778
779int tls1_ec_curve_id2nid(uint16_t curve_id); 773int tls1_ec_curve_id2nid(uint16_t curve_id);
780uint16_t tls1_ec_nid2curve_id(int nid); 774uint16_t tls1_ec_nid2curve_id(int nid);
781int tls1_check_curve(SSL *s, const unsigned char *p, size_t len); 775int tls1_check_curve(SSL *s, const unsigned char *p, size_t len);