2 ms·
Backpressure is a feature of Unix pipes. It isn't their raison d'être. I don't care how you implement it, but any claim that you can't check the MDC in GPG bec
by tptacek 9y ago
Backpressure is a feature of Unix pipes. It isn't their raison d'être.
I don't care how you implement it, but any claim that you can't check the MDC in GPG because it's a piped interface is obviously false. GPG can, like any number of Unix utilities, some casually written and some carefully written, simply buffer the data, process it, and write it.
- dfabulich 9y agoNobody said "you can't check the MDC." Everybody said "you have to check GPG's error code." And I think it's clear to everybody (in this thread) that GPG's approach is a dangerous blame-the-user approach to API design, even granting that this dangerous approach offers optimum performance (especially relative to adding an entire second pass).
- tptacek 9y agoThere's no difference. You're talking about the program, I'm talking about the mechanism. Either way: * GPG should never release unauthenticated plaintext to callers. The exit code is a red herring. * Nothing about "pipes" prevents them from squelching unauthenticated plaintext.