Skip to content

Commit d65a2b5

Browse files
committed
Fix various typos
1 parent a3fcf41 commit d65a2b5

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- added PKCS#11 provider support (requires OpenSSL 3.0+)
77
- added support for providers without specifying "-pkcs11module" option
88
(OpenSSL 3.0+, e.g., for the upcoming CNG provider)
9-
- added compatiblity with the CNG engine version 1.1 or later
9+
- added compatibility with the CNG engine version 1.1 or later
1010
- added the "-engineCtrl" option to control hardware and CNG engines
1111
- added the '-blobFile' option to specify a file containing the blob content
1212
- improved unauthenticated blob support (thanks to Asger Hautop Drewsen)

appx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ static void zipWriteCentralDirectoryEntry(BIO *bio, uint64_t *sizeOnDisk, ZIP_CE
288288
static int zipAppendSignatureFile(BIO *bio, ZIP_FILE *zip, uint8_t *data, uint64_t dataSize);
289289
static int zipOverrideFileData(ZIP_CENTRAL_DIRECTORY_ENTRY *entry, uint8_t *data, uint64_t dataSize);
290290
static int zipRewriteData(ZIP_FILE *zip, ZIP_CENTRAL_DIRECTORY_ENTRY *entry, BIO *bio, uint64_t *sizeOnDisk);
291-
static void zipWriteLocalHeader(BIO *bio, uint64_t *sizeonDisk, ZIP_LOCAL_HEADER *heade);
291+
static void zipWriteLocalHeader(BIO *bio, uint64_t *sizeonDisk, ZIP_LOCAL_HEADER *header);
292292
static int zipEntryExist(ZIP_FILE *zip, const char *name);
293293
static u_char *zipCalcDigest(ZIP_FILE *zip, const char *fileName, const EVP_MD *md);
294294
static size_t zipReadFileDataByName(uint8_t **pData, ZIP_FILE *zip, const char *name);
@@ -1908,7 +1908,7 @@ static size_t zipReadFileData(ZIP_FILE *zip, uint8_t **pData, ZIP_CENTRAL_DIRECT
19081908
OPENSSL_free(compressedData);
19091909

19101910
if (ret != Z_OK) {
1911-
fprintf(stderr, "Data decompresssion failed, zlib error: %d\n", ret);
1911+
fprintf(stderr, "Data decompression failed, zlib error: %d\n", ret);
19121912
OPENSSL_free(uncompressedData);
19131913
return 0; /* FAILED */
19141914
} else {

cab.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ static CAB_CTX *cab_ctx_get(char *indata, uint32_t filesize)
696696
* and consist of 4 bytes (little-endian order)
697697
* siglen - additional data size is located at offset 48 (from file beginning)
698698
* and consist of 4 bytes (little-endian order)
699-
* If there are additional headers, size of the CAB archive file is calcualted
699+
* If there are additional headers, size of the CAB archive file is calculated
700700
* as additional data offset plus additional data size.
701701
*/
702702
sigpos = GET_UINT32_LE(indata + 44);

msi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,8 +2399,8 @@ static int msi_hash_length_get(FILE_FORMAT_CTX *ctx)
23992399
/*
24002400
* Get DigitalSignature and MsiDigitalSignatureEx streams
24012401
* to check if the signature exists.
2402-
* [in, out] ctx: structure holds input and output datafv
2403-
* [returns] 0 on error or 1 on successs
2402+
* [in, out] ctx: structure holds input and output data
2403+
* [returns] 0 on error or 1 on success
24042404
*/
24052405
static int msi_check_file(FILE_FORMAT_CTX *ctx)
24062406
{

osslsigncode.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,7 +2090,7 @@ static X509_CRL *x509_crl_get(FILE_FORMAT_CTX *ctx, char *url)
20902090
ctx->options->noverifypeer ? NULL : ctx->options->https_crlfile);
20912091
#endif /* OPENSSL_VERSION_NUMBER<0x30000000L */
20922092
if (!bio) {
2093-
fprintf(stderr, "Faild to get CRL from %s\n\n", url);
2093+
fprintf(stderr, "Failed to get CRL from %s\n\n", url);
20942094
return NULL; /* FAILED */
20952095
}
20962096
crl = d2i_X509_CRL_bio(bio, NULL); /* DER format */
@@ -2100,7 +2100,7 @@ static X509_CRL *x509_crl_get(FILE_FORMAT_CTX *ctx, char *url)
21002100
}
21012101
BIO_free_all(bio);
21022102
if (!crl) {
2103-
fprintf(stderr, "Faild to decode CRL from %s\n\n", url);
2103+
fprintf(stderr, "Failed to decode CRL from %s\n\n", url);
21042104
return NULL; /* FAILED */
21052105
}
21062106
return crl; /* OK */
@@ -4221,17 +4221,17 @@ static int read_token(GLOBAL_OPTIONS *options, ENGINE *engine)
42214221
struct {
42224222
const char *id;
42234223
X509 *cert;
4224-
} parms;
4224+
} params;
42254225

4226-
parms.id = options->p11cert;
4227-
parms.cert = NULL;
4228-
ENGINE_ctrl_cmd(engine, "LOAD_CERT_CTRL", 0, &parms, NULL, 1);
4229-
if (!parms.cert) {
4226+
params.id = options->p11cert;
4227+
params.cert = NULL;
4228+
ENGINE_ctrl_cmd(engine, "LOAD_CERT_CTRL", 0, &params, NULL, 1);
4229+
if (!params.cert) {
42304230
fprintf(stderr, "Failed to load certificate %s\n", options->p11cert);
42314231
ENGINE_finish(engine);
42324232
return 0; /* FAILED */
42334233
} else
4234-
sk_X509_push(options->certs, parms.cert);
4234+
sk_X509_push(options->certs, params.cert);
42354235
}
42364236

42374237
options->pkey = ENGINE_load_private_key(engine, options->keyfile, NULL, NULL);

tests/server_http.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
CONF_PATH = os.path.join(RESULT_PATH, "./Testing/conf/")
1818
LOGS_PATH = os.path.join(RESULT_PATH, "./Testing/logs/")
1919
REQUEST = os.path.join(FILES_PATH, "./jreq.tsq")
20-
RESPONS = os.path.join(FILES_PATH, "./jresp.tsr")
20+
RESPONSE = os.path.join(FILES_PATH, "./jresp.tsr")
2121
OPENSSL_CONF = os.path.join(CONF_PATH, "./openssl_tsa.cnf")
2222
SERVER_LOG = os.path.join(LOGS_PATH, "./server.log")
2323
URL_LOG = os.path.join(LOGS_PATH, "./url.log")
@@ -26,7 +26,7 @@
2626
"-reply", "-config", OPENSSL_CONF,
2727
"-passin", "pass:passme",
2828
"-queryfile", REQUEST,
29-
"-out", RESPONS]
29+
"-out", RESPONSE]
3030

3131

3232
class ThreadingHTTPServer(ThreadingMixIn, HTTPServer):
@@ -86,7 +86,7 @@ def do_POST(self): # pylint: disable=invalid-name
8686
self.send_header("Content-type", "application/timestamp-reply")
8787
self.end_headers()
8888
resp_data = b''
89-
with open(RESPONS, mode="rb") as file:
89+
with open(RESPONSE, mode="rb") as file:
9090
resp_data = file.read()
9191
self.wfile.write(resp_data)
9292

tests/server_http.pyw

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CERTS_PATH = os.path.join(RESULT_PATH, "./Testing/certs/")
1616
CONF_PATH = os.path.join(RESULT_PATH, "./Testing/conf/")
1717
LOGS_PATH = os.path.join(RESULT_PATH, "./Testing/logs/")
1818
REQUEST = os.path.join(FILES_PATH, "./jreq.tsq")
19-
RESPONS = os.path.join(FILES_PATH, "./jresp.tsr")
19+
RESPONSE = os.path.join(FILES_PATH, "./jresp.tsr")
2020
OPENSSL_CONF = os.path.join(CONF_PATH, "./openssl_tsa.cnf")
2121
SERVER_LOG = os.path.join(LOGS_PATH, "./server.log")
2222
URL_LOG = os.path.join(LOGS_PATH, "./url.log")
@@ -26,7 +26,7 @@ OPENSSL_TS = ["openssl", "ts",
2626
"-reply", "-config", OPENSSL_CONF,
2727
"-passin", "pass:passme",
2828
"-queryfile", REQUEST,
29-
"-out", RESPONS]
29+
"-out", RESPONSE]
3030

3131

3232
class RequestHandler(SimpleHTTPRequestHandler):
@@ -82,7 +82,7 @@ class RequestHandler(SimpleHTTPRequestHandler):
8282
self.send_header("Content-type", "application/timestamp-reply")
8383
self.end_headers()
8484
resp_data = b''
85-
with open(RESPONS, mode="rb") as file:
85+
with open(RESPONSE, mode="rb") as file:
8686
resp_data = file.read()
8787
self.wfile.write(resp_data)
8888
except Exception as err: # pylint: disable=broad-except

0 commit comments

Comments
 (0)