Skip to content

Commit e6a66aa

Browse files
authored
Merge pull request #73 from Geod24/ossl_typ
Rename deimos.openssl.ossl_typ to [...].types
2 parents 5b0b699 + b7aaa32 commit e6a66aa

File tree

23 files changed

+278
-307
lines changed

23 files changed

+278
-307
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ to match the C-headers version, in this case current version is 1.1.0h.
1818
2. Clone openssl with `git clone https://github.com/openssl/openssl` and
1919
checkout correct tag, example `cd openssl && git checkout OpenSSL_1_1_0h`.
2020
3. Headers with suffix ".h.in" need to be parsed to .h before generation,
21-
Configure openssl with `./configure` and build generated file with
21+
Configure openssl with `./configure` and build generated file with
2222
`make build_generated`.
2323
2424
### Check dependencies
@@ -51,9 +51,9 @@ Below is a checklist for common known issues which needs manual work:
5151
compilation error similar to "missing argument for parameter #1".
5252
Replace "enum" with "alias" accordingly.
5353
3. Many struct definitions is removed, instead a declaration ia added into
54-
`ossl_typ.d`, Example `grep -r 'struct X509_pubkey_st' C/` shows that struct
54+
`types.d`, Example `grep -r 'struct X509_pubkey_st' C/` shows that struct
5555
definition is removed from `x509.h` and instead a declaration is added in
56-
`ossl_typ.h`. Other types might be removed, check the header-file and adjust
56+
`types.h`. Other types might be removed, check the header-file and adjust
5757
accordingly if the type is missing when compiling.
5858
4. Check the header-file for "ifdef|ifndef", search for "OPENSSL_*" where some
5959
statements has historically been translated into "version" in d-modules.
@@ -63,7 +63,6 @@ Below is a checklist for common known issues which needs manual work:
6363
uplifted, a declaration sometimes need to be inserted to make it
6464
compile. It will result in "type missing "stack_st_...". Check in which
6565
header the macro `DEFINE_STACK_OF(<type>)` is defined in and manually add
66-
`struct stack_st_<type-name>` to make it compile. However these functions
66+
`struct stack_st_<type-name>` to make it compile. However these functions
6767
will not work properly during linkage until `safestack.d` is uplifted,
6868
see macro `DEFINE_STACK_OF` in safestack.h.
69-

source/deimos/openssl/asn1.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public import deimos.openssl.safestack;
7272

7373
public import deimos.openssl.symhacks;
7474

75-
public import deimos.openssl.ossl_typ;
75+
public import deimos.openssl.types;
7676
version(OPENSSL_NO_DEPRECATED) {} else {
7777
public import deimos.openssl.bn;
7878
}

source/deimos/openssl/asn1t.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module deimos.openssl.asn1t;
5959

6060
import deimos.openssl._d_util;
6161

62-
import deimos.openssl.ossl_typ; // Needed for ASN1_BOOLEAN, etc.
62+
import deimos.openssl.types; // Needed for ASN1_BOOLEAN, etc.
6363

6464
import core.stdc.config;
6565
public import deimos.openssl.e_os2;

source/deimos/openssl/bn.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public import deimos.openssl.e_os2;
130130
version(OPENSSL_NO_FP_API) {} else {
131131
import core.stdc.stdio; /* FILE */
132132
}
133-
public import deimos.openssl.ossl_typ;
133+
public import deimos.openssl.types;
134134
public import deimos.openssl.crypto;
135135

136136
extern (C):
@@ -310,7 +310,7 @@ void BN_with_flags()(BIGNUM* dest, BIGNUM* b, int n) {
310310
| n;
311311
}
312312

313-
/* Already declared in ossl_typ.h */
313+
/* Already declared in types.h */
314314
version (none) {
315315
alias bignum_st BIGNUM;
316316
/* Used for temp variables (declaration hidden in bn_lcl.h) */

source/deimos/openssl/buffer.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module deimos.openssl.buffer;
6060

6161
import deimos.openssl._d_util;
6262

63-
public import deimos.openssl.ossl_typ;
63+
public import deimos.openssl.types;
6464

6565
extern (C):
6666
nothrow:
@@ -71,7 +71,7 @@ import core.stdc.config;
7171
//#include <sys/types.h>
7272
//#endif
7373

74-
/* Already declared in ossl_typ.h */
74+
/* Already declared in types.h */
7575
/* typedef buf_mem_st BUF_MEM; */
7676

7777
struct buf_mem_st

source/deimos/openssl/conf.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public import deimos.openssl.stack;
6666
public import deimos.openssl.safestack;
6767
public import deimos.openssl.e_os2;
6868

69-
public import deimos.openssl.ossl_typ;
69+
public import deimos.openssl.types;
7070

7171
extern (C):
7272
nothrow:

source/deimos/openssl/crypto.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ import core.stdc.stdio;
129129
public import deimos.openssl.stack;
130130
public import deimos.openssl.safestack;
131131
public import deimos.openssl.opensslv;
132-
public import deimos.openssl.ossl_typ;
132+
public import deimos.openssl.types;
133133

134134
version (CHARSET_EBCDIC) {
135135
public import deimos.openssl.ebcdic;
@@ -156,7 +156,7 @@ enum SSLEAY_BUILT_ON = 3;
156156
enum SSLEAY_PLATFORM = 4;
157157
enum SSLEAY_DIR = 5;
158158

159-
/* Already declared in ossl_typ.h */
159+
/* Already declared in types.h */
160160
/+#if 0
161161
alias crypto_ex_data_st CRYPTO_EX_DATA;
162162
/* Called when a new object is created */

source/deimos/openssl/dh.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ version (OPENSSL_NO_DH) {
7171
version(OPENSSL_NO_BIO) {} else {
7272
public import deimos.openssl.bio;
7373
}
74-
public import deimos.openssl.ossl_typ;
74+
public import deimos.openssl.types;
7575
version(OPENSSL_NO_DEPRECATED) {} else {
7676
public import deimos.openssl.bn;
7777
}
@@ -107,7 +107,7 @@ enum DH_FLAG_NON_FIPS_ALLOW = 0x0400;
107107
extern (C):
108108
nothrow:
109109

110-
/* Already defined in ossl_typ.h */
110+
/* Already defined in types.h */
111111
/* typedef dh_st DH; */
112112
/* typedef dh_method DH_METHOD; */
113113

source/deimos/openssl/dsa.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ version(OPENSSL_NO_BIO) {} else {
7878
public import deimos.openssl.bio;
7979
}
8080
public import deimos.openssl.crypto;
81-
public import deimos.openssl.ossl_typ;
81+
public import deimos.openssl.types;
8282

8383
version(OPENSSL_NO_DEPRECATED) {} else {
8484
public import deimos.openssl.bn;
@@ -118,7 +118,7 @@ enum DSA_FLAG_NON_FIPS_ALLOW = 0x0400;
118118
extern (C):
119119
nothrow:
120120

121-
/* Already defined in ossl_typ.h */
121+
/* Already defined in types.h */
122122
/* typedef dsa_st DSA; */
123123
/* typedef dsa_method DSA_METHOD; */
124124

source/deimos/openssl/ecdh.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* are met:
2222
*
2323
* 1. Redistributions of source code must retain the above copyright
24-
* notice, this list of conditions and the following disclaimer.
24+
* notice, this list of conditions and the following disclaimer.
2525
*
2626
* 2. Redistributions in binary form must reproduce the above copyright
2727
* notice, this list of conditions and the following disclaimer in
@@ -77,7 +77,7 @@ version (OPENSSL_NO_ECDH) {
7777
}
7878

7979
public import deimos.openssl.ec;
80-
public import deimos.openssl.ossl_typ;
80+
public import deimos.openssl.types;
8181
version(OPENSSL_NO_DEPRECATED) {} else {
8282
public import deimos.openssl.bn;
8383
}
@@ -94,7 +94,7 @@ int ECDH_set_method(EC_KEY*, const(ECDH_METHOD)*);
9494
int ECDH_compute_key(void* out_, size_t outlen, const(EC_POINT)* pub_key, EC_KEY* ecdh,
9595
ExternC!(void* function(const(void)* in_, size_t inlen, void* out_, size_t* outlen)) KDF);
9696

97-
int ECDH_get_ex_new_index(c_long argl, void* argp, CRYPTO_EX_new
97+
int ECDH_get_ex_new_index(c_long argl, void* argp, CRYPTO_EX_new
9898
*new_func, CRYPTO_EX_dup* dup_func, CRYPTO_EX_free* free_func);
9999
int ECDH_set_ex_data(EC_KEY* d, int idx, void* arg);
100100
void* ECDH_get_ex_data(EC_KEY* d, int idx);

0 commit comments

Comments
 (0)