aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2022-03-20 13:43:34 -0400
committerCameron Katri <me@cameronkatri.com>2022-03-20 13:43:34 -0400
commit10f4c5e49fa2f50ca3f0be7fb70fcc303e381dc3 (patch)
tree7a462710ed192daa7f1314a87dc12b39fffef45f
parent33c6686fda5e2d18d26f7e0510a245487f9a0c01 (diff)
downloadldid-10f4c5e49fa2f50ca3f0be7fb70fcc303e381dc3.tar.gz
ldid-10f4c5e49fa2f50ca3f0be7fb70fcc303e381dc3.tar.zst
ldid-10f4c5e49fa2f50ca3f0be7fb70fcc303e381dc3.zip
ldid.1: Document -H[sha1 | sha256]
While here, remove the warning message that is printed when used. This flag is very useful so this message is removed.
-rw-r--r--docs/ldid.111
-rw-r--r--ldid.cpp3
2 files changed, 9 insertions, 5 deletions
diff --git a/docs/ldid.1 b/docs/ldid.1
index 2619ecc..02170e1 100644
--- a/docs/ldid.1
+++ b/docs/ldid.1
@@ -17,11 +17,13 @@
.Op Fl d
.Op Fl E Ns Ar num : Ns Ar file
.Op Fl e
+.Op Fl H Ns Op Ar sha1 | Ar sha256
.Op Fl h
.Op Fl I Ns Ar name
.Op Fl K Ns Ar key.p12 Op Fl U Ns Ar password
.Op Fl M
.Op Fl P
+.Op Fl Q Ns Ar requirements.xml
.Op Fl q
.Op Fl r | Fl S Ns Ar file.xml | Fl s
.Op Fl T Ns Ar timestamp
@@ -69,6 +71,11 @@ Print the entitlements in each slice, or the slice specified by
.Fl A ,
to
.Ar stdout .
+.It Fl H Ns Op Ar sha1 | Ar sha256
+Disable the hash not specified.
+This is useful to replicate the default behavior of
+.Xr codesign 1 ,
+which only provides an sha256 signature.
.It Fl h
Print information about the signature, such as
hash types, flags, CDHash, and CodeDirectory version to
@@ -95,9 +102,9 @@ entitlements, this is useful for adding a few specific entitlements to a
handful of binaries.
.It Fl P
Mark the Mach-O as a platform binary.
-.It Fl Q Ns Ar file
+.It Fl Q Ns Ar requirements.xml
Embed the requirements found in
-.Ar file .
+.Ar requirements.xml .
.It Fl q
Print embedded requirements of the binaries.
.It Fl r
diff --git a/ldid.cpp b/ldid.cpp
index 7598b40..13eab12 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -3225,9 +3225,6 @@ int main(int argc, char *argv[]) {
do_sha1 = false;
do_sha256 = false;
-
- fprintf(stderr, "WARNING: -H is only present for compatibility with a fork of ldid\n");
- fprintf(stderr, " you should NOT be manually specifying the hash algorithm\n");
}
if (false);