aboutsummaryrefslogtreecommitdiff
path: root/file
diff options
context:
space:
mode:
Diffstat (limited to 'file')
-rw-r--r--file/names.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/file/names.go b/file/names.go
index 9d3e23b..a522f6b 100644
--- a/file/names.go
+++ b/file/names.go
@@ -26,7 +26,7 @@ func splitNameExt(fname string) (string, string) {
func Names(pubFile, encFile string) error {
pubName, pubExt := splitNameExt(pubFile)
encName, encExt := splitNameExt(encFile)
- if pubExt != PubExt || encExt != SigExt || pubName != encName {
+ if pubExt != PubExt || encExt != EncExt || pubName != encName {
return ErrNames
}
return nil