summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-08-15 14:44:18 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-08-15 14:44:18 -0400
commit617f03c948b66774e6765206bed2c56d30157187 (patch)
tree88fe42f4e6fd510fe18c996583181a766e0f1d7b /src/common
parent22476961b7915076e6ae7f353b563516f9931a04 (diff)
first pass at revoking hostnames.
Diffstat (limited to 'src/common')
-rw-r--r--src/common7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common b/src/common
index 17955a7..24decae 100644
--- a/src/common
+++ b/src/common
@@ -76,6 +76,13 @@ unescape() {
echo "$1" | sed 's/\\x3a/:/g'
}
+# convert nasty chars into gpg-friendly form
+# FIXME: escape everything, not just colons!
+escape() {
+ echo "$1" | sed 's/:/\\x3a/g'
+}
+
+
# remove all lines with specified string from specified file
remove_line() {
local file