diff options
| author | guenther <> | 2014-06-02 05:17:45 +0000 |
|---|---|---|
| committer | guenther <> | 2014-06-02 05:17:45 +0000 |
| commit | 1bf170aeb48293ab416e64e4aebf9d0608093760 (patch) | |
| tree | bbbf32cb222e96dbfcab425620d15e8d0899e9a0 | |
| parent | 70a0602af94c2cd464b5e80ca85d5a88ad83dd48 (diff) | |
| download | openbsd-1bf170aeb48293ab416e64e4aebf9d0608093760.tar.gz openbsd-1bf170aeb48293ab416e64e4aebf9d0608093760.tar.bz2 openbsd-1bf170aeb48293ab416e64e4aebf9d0608093760.zip | |
Since pqueue is a private interface and the header defining the struct
isn't even exported, there's no (sane) way for someone else to use the
typedef. Eliminate the typedef and just use "struct _pqueue *".
duplicate typedef pointed out by Brent Cook (busterb (at) gmail.com)
ok miod@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/dtls1.h | 7 | ||||
| -rw-r--r-- | src/lib/libssl/src/ssl/dtls1.h | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/src/lib/libssl/dtls1.h b/src/lib/libssl/dtls1.h index b0cf839b78..5a14ee427b 100644 --- a/src/lib/libssl/dtls1.h +++ b/src/lib/libssl/dtls1.h | |||
| @@ -144,11 +144,10 @@ struct dtls1_timeout_st { | |||
| 144 | }; | 144 | }; |
| 145 | 145 | ||
| 146 | struct _pqueue; | 146 | struct _pqueue; |
| 147 | typedef struct _pqueue *pqueue; | ||
| 148 | 147 | ||
| 149 | typedef struct record_pqueue_st { | 148 | typedef struct record_pqueue_st { |
| 150 | unsigned short epoch; | 149 | unsigned short epoch; |
| 151 | pqueue q; | 150 | struct _pqueue *q; |
| 152 | } record_pqueue; | 151 | } record_pqueue; |
| 153 | 152 | ||
| 154 | typedef struct hm_fragment_st { | 153 | typedef struct hm_fragment_st { |
| @@ -191,10 +190,10 @@ typedef struct dtls1_state_st { | |||
| 191 | record_pqueue processed_rcds; | 190 | record_pqueue processed_rcds; |
| 192 | 191 | ||
| 193 | /* Buffered handshake messages */ | 192 | /* Buffered handshake messages */ |
| 194 | pqueue buffered_messages; | 193 | struct _pqueue *buffered_messages; |
| 195 | 194 | ||
| 196 | /* Buffered (sent) handshake records */ | 195 | /* Buffered (sent) handshake records */ |
| 197 | pqueue sent_messages; | 196 | struct _pqueue *sent_messages; |
| 198 | 197 | ||
| 199 | /* Buffered application records. | 198 | /* Buffered application records. |
| 200 | * Only for records between CCS and Finished | 199 | * Only for records between CCS and Finished |
diff --git a/src/lib/libssl/src/ssl/dtls1.h b/src/lib/libssl/src/ssl/dtls1.h index b0cf839b78..5a14ee427b 100644 --- a/src/lib/libssl/src/ssl/dtls1.h +++ b/src/lib/libssl/src/ssl/dtls1.h | |||
| @@ -144,11 +144,10 @@ struct dtls1_timeout_st { | |||
| 144 | }; | 144 | }; |
| 145 | 145 | ||
| 146 | struct _pqueue; | 146 | struct _pqueue; |
| 147 | typedef struct _pqueue *pqueue; | ||
| 148 | 147 | ||
| 149 | typedef struct record_pqueue_st { | 148 | typedef struct record_pqueue_st { |
| 150 | unsigned short epoch; | 149 | unsigned short epoch; |
| 151 | pqueue q; | 150 | struct _pqueue *q; |
| 152 | } record_pqueue; | 151 | } record_pqueue; |
| 153 | 152 | ||
| 154 | typedef struct hm_fragment_st { | 153 | typedef struct hm_fragment_st { |
| @@ -191,10 +190,10 @@ typedef struct dtls1_state_st { | |||
| 191 | record_pqueue processed_rcds; | 190 | record_pqueue processed_rcds; |
| 192 | 191 | ||
| 193 | /* Buffered handshake messages */ | 192 | /* Buffered handshake messages */ |
| 194 | pqueue buffered_messages; | 193 | struct _pqueue *buffered_messages; |
| 195 | 194 | ||
| 196 | /* Buffered (sent) handshake records */ | 195 | /* Buffered (sent) handshake records */ |
| 197 | pqueue sent_messages; | 196 | struct _pqueue *sent_messages; |
| 198 | 197 | ||
| 199 | /* Buffered application records. | 198 | /* Buffered application records. |
| 200 | * Only for records between CCS and Finished | 199 | * Only for records between CCS and Finished |
