]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Remove a bunch of uprofessional jargon
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 26 Jun 2023 21:47:30 +0000 (15:47 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 26 Jun 2023 21:47:30 +0000 (15:47 -0600)
configure.ac
src/crypto/base64.c
src/extension.c
src/line_file.c
src/log.c
src/object/certificate.c

index c7e7870c167ff35b55e9b1e72029a371bf236585..4ed333c89cf8d88bbc2f4485c4fb88a0dd239777 100644 (file)
@@ -40,8 +40,8 @@ AM_CONDITIONAL([BACKTRACE_ENABLED], [test "x$have_backtrace" != "xno"])
 # By the way: Apparently PKG_CHECK_MODULES is poor practice now. I can't tell;
 # it's always the same guy complaining about it in Stack Overflow.
 # (Main one: https://stackoverflow.com/questions/10220946)
-# But I couldn't make check work with AC_SEARCH_LIBS, and (probably due to
-# typical obscure bullshit autotools reasoning) I have no idea why.
+# But I couldn't make check work with AC_SEARCH_LIBS, probably because of some
+# obscure autotools reasoning.
 PKG_CHECK_MODULES([JANSSON], [jansson])
 PKG_CHECK_MODULES([CURL], [libcurl])
 PKG_CHECK_MODULES([XML2], [libxml-2.0])
index f839bc78075b63a7a598ee00e766d0ee67ba8ac8..a3c21e24dcccf75757f61e3ec45bb5cbdfe41a7c 100644 (file)
@@ -46,7 +46,7 @@ base64_decode(BIO *in, unsigned char *out, bool has_nl, size_t out_len,
        unsigned long error;
 
        /*
-        * BTW: The libcrypto API was clearly designed by fucking idiots.
+        * BTW: The libcrypto API is perplexing.
         * Peeking at the error stack is the only way I found to figure out
         * whether some of the functions error'd.
         * But since it's not documented that it's supposed to work this way,
index d8bd58ed9305a0da27f74fa79aa10a41119c98e4..bc8b43d7d4c7698d829077debdba940518c450dc 100644 (file)
@@ -274,8 +274,8 @@ validate_public_key_hash(X509 *cert, ASN1_OCTET_STRING *hash)
         * Bottom line, I don't know. But better be safe than sorry, so here's
         * the validation.
         *
-        * Shit. I feel like I'm losing so much performance because the RFCs
-        * are so wishy-washy about what is our realm and what is not.
+        * I feel like I'm losing so much performance because the RFCs are so
+        * wishy-washy about what is our realm and what is not.
         */
 
        /* Get the SPK (ask libcrypto) */
index ffce6c27df52a6501a62ff02b464e1c3e808ff4b..bb959e26c4aba66f7ee3afb05b1e556117e7510e 100644 (file)
@@ -74,10 +74,9 @@ lfile_read(struct line_file *lfile, char **result)
         * - If the file is empty, or all that's left is an empty line, it
         *   (confusingly) returns -1. errno will be 0, feof() should return
         *   1, ferror() should return 0.
-        * - The fact that it returns the newline in the buffer is puzzling,
-        *   because who the fuck wants that nonsense. You will want to remove
-        *   it, BUT DON'T SWEAT IT IF IT'S NOT THERE, because the last line of
-        *   the file might not be newline-terminated.
+        * - It includes the newline in the result, which is puzzling. You will
+        *   want to remove it, BUT DON'T SWEAT IT IF IT'S NOT THERE, because
+        *   the last line of the file might not be newline-terminated.
         * - The string WILL be NULL-terminated, but the NULL chara will not be
         *   included in the returned length. BUT IT'S THERE. Don't worry about
         *   writing past the allocated space on the last line.
index bb3466e34ad6122450f8439796f995eeeca7f48d..42b33c66c1c5803f9099601e44f99b48c5e7d804 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -188,8 +188,8 @@ register_signal_handlers(void)
         * > happen
         * (Documentation of CURLOPT_NOSIGNAL)
         *
-        * All SIGPIPE means is "the peer closed the connection for some reason,
-        * fuck you."
+        * All SIGPIPE means is "the peer closed the connection for some
+        * reason."
         * Which is a normal I/O error, and should be handled by the normal
         * error propagation logic, not by a signal handler.
         * So, ignore SIGPIPE.
index c6f61efdcecd9915bc2e2d5fd67fb9de190f2c92..e8e668f98be48306557e7626ae9be97eec13f0a1 100644 (file)
@@ -726,8 +726,8 @@ certificate_validate_signature(X509 *cert, ANY_t *signedData,
         *
         * The first one sounded less efficient but more straightforward, but
         * I couldn't pull it off because there's some memory bug with asn1c's
-        * encoding function that core dumps the fuck out of everything. It's
-        * caused by undefined behavior that triggers who knows where.
+        * encoding function that crashes everything. It's caused by undefined
+        * behavior that triggers who knows where.
         *
         * There's another problem with that approach: If we DER-encode the
         * signedAttrs, we have no guarantee that the signature will match