Skip to content

Commit acc3030

Browse files
committed
Trivial: Trim trailing whitespace
No whitespace at EOL, and only one `\n` at EOF.
1 parent 5b0b699 commit acc3030

File tree

4 files changed

+17
-19
lines changed

4 files changed

+17
-19
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 3 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
@@ -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/ecdh.d

Lines changed: 2 additions & 2 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
@@ -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);

source/deimos/openssl/ecdsa.d

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* are met:
1212
*
1313
* 1. Redistributions of source code must retain the above copyright
14-
* notice, this list of conditions and the following disclaimer.
14+
* notice, this list of conditions and the following disclaimer.
1515
*
1616
* 2. Redistributions in binary form must reproduce the above copyright
1717
* notice, this list of conditions and the following disclaimer in
@@ -95,12 +95,12 @@ void ECDSA_SIG_free(ECDSA_SIG* sig);
9595
* (*pp += length of the DER encoded signature)).
9696
* \param sig pointer to the ECDSA_SIG object
9797
* \param pp pointer to a ubyte pointer for the output or NULL
98-
* \return the length of the DER encoded ECDSA_SIG object or 0
98+
* \return the length of the DER encoded ECDSA_SIG object or 0
9999
*/
100100
int i2d_ECDSA_SIG(const(ECDSA_SIG)* sig, ubyte** pp);
101101

102102
/** Decodes a DER encoded ECDSA signature (note: this function changes* pp
103-
* (*pp += len)).
103+
* (*pp += len)).
104104
* \param sig pointer to ECDSA_SIG pointer (may be NULL)
105105
* \param pp memory buffer with the DER encoded signature
106106
* \param len length of the buffer
@@ -122,12 +122,12 @@ ECDSA_SIG* ECDSA_do_sign(const(ubyte)* dgst,int dgst_len,EC_KEY* eckey);
122122
* \param dgst pointer to the hash value to sign
123123
* \param dgstlen length of the hash value
124124
* \param kinv BIGNUM with a pre-computed inverse k (optional)
125-
* \param rp BIGNUM with a pre-computed rp value (optioanl),
125+
* \param rp BIGNUM with a pre-computed rp value (optioanl),
126126
* see ECDSA_sign_setup
127127
* \param eckey EC_KEY object containing a private EC key
128128
* \return pointer to a ECDSA_SIG structure or NULL if an error occurred
129129
*/
130-
ECDSA_SIG* ECDSA_do_sign_ex(const(ubyte)* dgst, int dgstlen,
130+
ECDSA_SIG* ECDSA_do_sign_ex(const(ubyte)* dgst, int dgstlen,
131131
const(BIGNUM)* kinv, const(BIGNUM)* rp, EC_KEY* eckey);
132132

133133
/** Verifies that the supplied signature is a valid ECDSA
@@ -157,7 +157,7 @@ const(ECDSA_METHOD)* ECDSA_get_default_method();
157157
/** Sets method to be used for the ECDSA operations
158158
* \param eckey EC_KEY object
159159
* \param meth new method
160-
* \return 1 on success and 0 otherwise
160+
* \return 1 on success and 0 otherwise
161161
*/
162162
int ECDSA_set_method(EC_KEY* eckey, const(ECDSA_METHOD)* meth);
163163

@@ -174,7 +174,7 @@ int ECDSA_size(const(EC_KEY)* eckey);
174174
* \param rp BIGNUM pointer for x coordinate of k* generator
175175
* \return 1 on success and 0 otherwise
176176
*/
177-
int ECDSA_sign_setup(EC_KEY* eckey, BN_CTX* ctx, BIGNUM** kinv,
177+
int ECDSA_sign_setup(EC_KEY* eckey, BN_CTX* ctx, BIGNUM** kinv,
178178
BIGNUM** rp);
179179

180180
/** Computes ECDSA signature of a given hash value using the supplied
@@ -187,7 +187,7 @@ int ECDSA_sign_setup(EC_KEY* eckey, BN_CTX* ctx, BIGNUM** kinv,
187187
* \param eckey EC_KEY object containing a private EC key
188188
* \return 1 on success and 0 otherwise
189189
*/
190-
int ECDSA_sign(int type, const(ubyte)* dgst, int dgstlen,
190+
int ECDSA_sign(int type, const(ubyte)* dgst, int dgstlen,
191191
ubyte* sig, uint* siglen, EC_KEY* eckey);
192192

193193

@@ -199,31 +199,31 @@ int ECDSA_sign(int type, const(ubyte)* dgst, int dgstlen,
199199
* \param sig buffer to hold the DER encoded signature
200200
* \param siglen pointer to the length of the returned signature
201201
* \param kinv BIGNUM with a pre-computed inverse k (optional)
202-
* \param rp BIGNUM with a pre-computed rp value (optioanl),
202+
* \param rp BIGNUM with a pre-computed rp value (optioanl),
203203
* see ECDSA_sign_setup
204204
* \param eckey EC_KEY object containing a private EC key
205205
* \return 1 on success and 0 otherwise
206206
*/
207-
int ECDSA_sign_ex(int type, const(ubyte)* dgst, int dgstlen,
207+
int ECDSA_sign_ex(int type, const(ubyte)* dgst, int dgstlen,
208208
ubyte* sig, uint* siglen, const(BIGNUM)* kinv,
209209
const(BIGNUM)* rp, EC_KEY* eckey);
210210

211211
/** Verifies that the given signature is valid ECDSA signature
212212
* of the supplied hash value using the specified public key.
213213
* \param type this parameter is ignored
214-
* \param dgst pointer to the hash value
214+
* \param dgst pointer to the hash value
215215
* \param dgstlen length of the hash value
216216
* \param sig pointer to the DER encoded signature
217217
* \param siglen length of the DER encoded signature
218218
* \param eckey EC_KEY object containing a public EC key
219219
* \return 1 if the signature is valid, 0 if the signature is invalid
220220
* and -1 on error
221221
*/
222-
int ECDSA_verify(int type, const(ubyte)* dgst, int dgstlen,
222+
int ECDSA_verify(int type, const(ubyte)* dgst, int dgstlen,
223223
const(ubyte)* sig, int siglen, EC_KEY* eckey);
224224

225225
/* the standard ex_data functions */
226-
int ECDSA_get_ex_new_index(c_long argl, void* argp, CRYPTO_EX_new
226+
int ECDSA_get_ex_new_index(c_long argl, void* argp, CRYPTO_EX_new
227227
*new_func, CRYPTO_EX_dup* dup_func, CRYPTO_EX_free* free_func);
228228
int ECDSA_set_ex_data(EC_KEY* d, int idx, void* arg);
229229
void* ECDSA_get_ex_data(EC_KEY* d, int idx);

source/deimos/openssl/x509.d

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,4 +1684,3 @@ enum X509_R_UNKNOWN_TRUST_ID = 120;
16841684
enum X509_R_UNSUPPORTED_ALGORITHM = 111;
16851685
enum X509_R_WRONG_LOOKUP_TYPE = 112;
16861686
enum X509_R_WRONG_TYPE = 122;
1687-

0 commit comments

Comments
 (0)