Skip to content

Commit 7ebceee

Browse files
committed
Fix compile errors
1 parent 04d589f commit 7ebceee

File tree

5 files changed

+16
-19
lines changed

5 files changed

+16
-19
lines changed

deimos/openssl/engine.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public import deimos.openssl.err;
9494
}
9595

9696
public import deimos.openssl.ossl_typ;
97+
import deimos.openssl.ssl : SSL;
9798
public import deimos.openssl.symhacks;
9899

99100
public import deimos.openssl.x509;
@@ -141,7 +142,7 @@ enum ENGINE_FLAGS_MANUAL_CMD_CTRL = 0x0002;
141142
* the existing ENGINE's structural reference count. */
142143
enum ENGINE_FLAGS_BY_ID_COPY = 0x0004;
143144

144-
/* This flag if for an ENGINE that does not want its methods registered as
145+
/* This flag if for an ENGINE that does not want its methods registered as
145146
* part of ENGINE_register_all_complete() for example if the methods are
146147
* not usable as default methods.
147148
*/

deimos/openssl/kssl.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ krb5_error_code kssl_check_authent(KSSL_CTX* kssl_ctx, krb5_data* authentp,
186186
krb5_timestamp* atimep, KSSL_ERR* kssl_err);
187187
ubyte* kssl_skip_confound(krb5_enctype enctype, ubyte* authn);+/
188188

189-
import deimos.openssl.ossl_typ : SSL;
189+
import deimos.openssl.ssl : SSL;
190190
void SSL_set0_kssl_ctx(SSL* s, KSSL_CTX* kctx);
191191
KSSL_CTX* SSL_get0_kssl_ctx(SSL* s);
192192
char* kssl_ctx_get0_client_princ(KSSL_CTX* kctx);

deimos/openssl/ossl_typ.d

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,6 @@ alias st_ERR_FNS ERR_FNS;
204204

205205
struct engine_st;
206206
alias engine_st ENGINE;
207-
import deimos.openssl.ssl : ssl_st, ssl_ctx_st;
208-
alias ssl_st SSL;
209-
alias ssl_ctx_st SSL_CTX;
210207

211208
struct X509_POLICY_NODE_st;
212209
alias X509_POLICY_NODE_st X509_POLICY_NODE;

deimos/openssl/srtp.d

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
* This package is an SSL implementation written
66
* by Eric Young ([email protected]).
77
* The implementation was written so as to conform with Netscapes SSL.
8-
*
8+
*
99
* This library is free for commercial and non-commercial use as long as
1010
* the following conditions are aheared to. The following conditions
1111
* apply to all code found in this distribution, be it the RC4, RSA,
1212
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
1313
* included with this distribution is covered by the same copyright terms
1414
* except that the holder is Tim Hudson ([email protected]).
15-
*
15+
*
1616
* Copyright remains Eric Young's, and as such any Copyright notices in
1717
* the code are not to be removed.
1818
* If this package is used in a product, Eric Young should be given attribution
1919
* as the author of the parts of the library used.
2020
* This can be in the form of a textual message at program startup or
2121
* in documentation (online or textual) provided with the package.
22-
*
22+
*
2323
* Redistribution and use in source and binary forms, with or without
2424
* modification, are permitted provided that the following conditions
2525
* are met:
@@ -34,10 +34,10 @@
3434
* Eric Young ([email protected])"
3535
* The word 'cryptographic' can be left out if the rouines from the library
3636
* being used are not cryptographic related :-).
37-
* 4. If you include any Windows specific code (or a derivative thereof) from
37+
* 4. If you include any Windows specific code (or a derivative thereof) from
3838
* the apps directory (application code) you must include an acknowledgement:
3939
* "This product includes software written by Tim Hudson ([email protected])"
40-
*
40+
*
4141
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
4242
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
4343
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
4949
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
5050
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
5151
* SUCH DAMAGE.
52-
*
52+
*
5353
* The licence and distribution terms for any publically available version or
5454
* derivative of this code cannot be changed. i.e. this code cannot simply be
5555
* copied and put under another distribution licence
@@ -63,7 +63,7 @@
6363
* are met:
6464
*
6565
* 1. Redistributions of source code must retain the above copyright
66-
* notice, this list of conditions and the following disclaimer.
66+
* notice, this list of conditions and the following disclaimer.
6767
*
6868
* 2. Redistributions in binary form must reproduce the above copyright
6969
* notice, this list of conditions and the following disclaimer in
@@ -117,8 +117,7 @@
117117
module deimos.openssl.srtp;
118118

119119
import deimos.openssl._d_util;
120-
import deimos.openssl.ossl_typ : SSL, SSL_CTX;
121-
import deimos.openssl.ssl : SRTP_PROTECTION_PROFILE;
120+
import deimos.openssl.ssl : SSL, SSL_CTX, SRTP_PROTECTION_PROFILE;
122121
import deimos.openssl.safestack : STACK_OF;
123122

124123
extern(C):

deimos/openssl/ssl.d

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ struct ssl_method_st {
461461
* Peer [ 3 ] EXPLICIT X509, -- optional Peer Certificate
462462
* Session_ID_context [ 4 ] EXPLICIT OCTET STRING, -- the Session ID context
463463
* Verify_result [ 5 ] EXPLICIT INTEGER, -- X509_V_... code for `Peer'
464-
* HostName [ 6 ] EXPLICIT OCTET STRING, -- optional HostName from servername TLS extension
464+
* HostName [ 6 ] EXPLICIT OCTET STRING, -- optional HostName from servername TLS extension
465465
* PSK_identity_hint [ 7 ] EXPLICIT OCTET STRING, -- optional PSK identity hint
466466
* PSK_identity [ 8 ] EXPLICIT OCTET STRING, -- optional PSK identity
467467
* Ticket_lifetime_hint [9] EXPLICIT INTEGER, -- server's lifetime hint for session ticket
@@ -1014,10 +1014,10 @@ version(OPENSSL_NO_NEXTPROTONEG) {} else {
10141014
void *next_proto_select_cb_arg;
10151015
}
10161016
/* SRTP profiles we are willing to do from RFC 5764 */
1017-
STACK_OF!(SRTP_PROTECTION_PROFILE) *srtp_profiles;
1017+
STACK_OF!(SRTP_PROTECTION_PROFILE) *srtp_profiles;
10181018
}
10191019
}
1020-
1020+
alias SSL_CTX = ssl_ctx_st;
10211021
}
10221022

10231023
enum SSL_SESS_CACHE_OFF = 0x0000;
@@ -1402,8 +1402,8 @@ alias initial_ctx session_ctx;
14021402
version(OPENSSL_NO_SRP) {} else {
14031403
SRP_CTX srp_ctx; /* ctx for SRP authentication */
14041404
}
1405-
};
1406-
1405+
}
1406+
alias SSL = ssl_st;
14071407
}
14081408

14091409
public import deimos.openssl.ssl2;

0 commit comments

Comments
 (0)