mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-07-02 19:22:47 -05:00
Typos
This commit is contained in:
2
TODO.md
2
TODO.md
@ -1,4 +1,4 @@
|
|||||||
- signature extraction/removal/verificaton on MSI/CAB files
|
- signature extraction/removal/verification on MSI/CAB files
|
||||||
- clean up / untangle code
|
- clean up / untangle code
|
||||||
- separate timestamping
|
- separate timestamping
|
||||||
- remove mmap usage to increase portability
|
- remove mmap usage to increase portability
|
||||||
|
4
appx.c
4
appx.c
@ -925,7 +925,7 @@ static int appx_write_central_directory(BIO *bio, ZIP_FILE *zip, int removeSigna
|
|||||||
if (removeSignature && !strcmp(entry->fileName, APP_SIGNATURE_FILENAME)) {
|
if (removeSignature && !strcmp(entry->fileName, APP_SIGNATURE_FILENAME)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* APP_SIGNATURE is nt 'tainted' by offset shift after replacing the contents of [content_types] */
|
/* APP_SIGNATURE is not 'tainted' by offset shift after replacing the contents of [content_types] */
|
||||||
zipWriteCentralDirectoryEntry(bio, &sizeOnDisk, entry, strcmp(entry->fileName, APP_SIGNATURE_FILENAME) ? offsetDiff : 0);
|
zipWriteCentralDirectoryEntry(bio, &sizeOnDisk, entry, strcmp(entry->fileName, APP_SIGNATURE_FILENAME) ? offsetDiff : 0);
|
||||||
cdSize += sizeOnDisk;
|
cdSize += sizeOnDisk;
|
||||||
if (entry->overrideData) {
|
if (entry->overrideData) {
|
||||||
@ -1430,7 +1430,7 @@ static void zipWriteCentralDirectoryEntry(BIO *bio, uint64_t *sizeOnDisk, ZIP_CE
|
|||||||
#if 0
|
#if 0
|
||||||
if (entry->extraFieldLen > 0 && entry->extraField)
|
if (entry->extraFieldLen > 0 && entry->extraField)
|
||||||
{
|
{
|
||||||
/* TODO, if override daata, need to rewrite the extra field */
|
/* TODO, if override data, need to rewrite the extra field */
|
||||||
BIO_write(bio, entry->extraField, entry->extraFieldLen);
|
BIO_write(bio, entry->extraField, entry->extraFieldLen);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -998,7 +998,7 @@ static BIO *bio_get_http(char *url, BIO *req, char *proxy, int rfc3161, char *ca
|
|||||||
#endif /* OPENSSL_VERSION_NUMBER<0x30000000L */
|
#endif /* OPENSSL_VERSION_NUMBER<0x30000000L */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Decode a HTTP response from BIO and write it into the PKCS7 structure
|
* Decode an HTTP response from BIO and write it into the PKCS7 structure
|
||||||
* Add timestamp to the PKCS7 SignerInfo structure:
|
* Add timestamp to the PKCS7 SignerInfo structure:
|
||||||
* sig->d.sign->signer_info->unauth_attr
|
* sig->d.sign->signer_info->unauth_attr
|
||||||
* [in, out] p7: new PKCS#7 signature
|
* [in, out] p7: new PKCS#7 signature
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
"""Implementation of a HTTP client"""
|
"""Implementation of an HTTP client"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,7 +29,7 @@ def main() -> None:
|
|||||||
# all exceptions are critical
|
# all exceptions are critical
|
||||||
print(err, file=sys.stderr)
|
print(err, file=sys.stderr)
|
||||||
else:
|
else:
|
||||||
print("Usage:\n\t{} COMMAND [ARG]...'".format(sys.argv[0]), file=sys.stderr)
|
print("Usage:\n\t{} COMMAND [ARG]...".format(sys.argv[0]), file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
"""Implementation of a HTTP server"""
|
"""Implementation of an HTTP server"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
"""Windows: Implementation of a HTTP server"""
|
"""Windows: Implementation of an HTTP server"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
@ -51,7 +51,7 @@ def clear_catalog(certs_path) -> None:
|
|||||||
file.write(random_hex)
|
file.write(random_hex)
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
"""Wait for all tests certificate, compute leafhash"""
|
"""Wait for all test certificates and compute leaf hash"""
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
Reference in New Issue
Block a user