# 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])
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,
* 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) */
* - 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.
* > 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.
*
* 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