The association between the numeric error codes used by libpkix and their symbolic equivalents isn't defined explicitly anywhere. E.g. it's difficult what libpkix's error code 702 means, e.g. when printed from debug output. I propose to add a helper tool that can print all those numbers and names, for searching by developers.
Created attachment 630572 [details] [diff] [review] Patch v1
Created attachment 630574 [details] [diff] [review] Patch v2
Comment on attachment 630574 [details] [diff] [review] Patch v2 r+ rrelyea
Checking in cmd/manifest.mn; /cvsroot/mozilla/security/nss/cmd/manifest.mn,v <-- manifest.mn new revision: 1.36; previous revision: 1.35 done RCS file: /cvsroot/mozilla/security/nss/cmd/pkix-errcodes/Makefile,v done Checking in cmd/pkix-errcodes/Makefile; /cvsroot/mozilla/security/nss/cmd/pkix-errcodes/Makefile,v <-- Makefile initial revision: 1.1 done RCS file: /cvsroot/mozilla/security/nss/cmd/pkix-errcodes/manifest.mn,v done Checking in cmd/pkix-errcodes/manifest.mn; /cvsroot/mozilla/security/nss/cmd/pkix-errcodes/manifest.mn,v <-- manifest.mn initial revision: 1.1 done RCS file: /cvsroot/mozilla/security/nss/cmd/pkix-errcodes/pkix-errcodes.c,v done Checking in cmd/pkix-errcodes/pkix-errcodes.c; /cvsroot/mozilla/security/nss/cmd/pkix-errcodes/pkix-errcodes.c,v <-- pkix-errcodes.c initial revision: 1.1 done Checking in lib/libpkix/include/pkixt.h; /cvsroot/mozilla/security/nss/lib/libpkix/include/pkixt.h,v <-- pkixt.h new revision: 1.21; previous revision: 1.20 done