Ignore unknown parts of PKCS#11 URI
This commit is contained in:
parent
55520c5691
commit
e815fba204
@ -3314,7 +3314,7 @@ new file mode 100644
|
||||
index 00000000..da15c164
|
||||
--- /dev/null
|
||||
+++ b/ssh-pkcs11-uri.c
|
||||
@@ -0,0 +1,401 @@
|
||||
@@ -0,0 +1,395 @@
|
||||
+/*
|
||||
+ * Copyright (c) 2017 Red Hat
|
||||
+ *
|
||||
@ -3619,11 +3619,6 @@ index 00000000..da15c164
|
||||
+ if (tok == NULL)
|
||||
+ break;
|
||||
+ opcode = parse_token(tok);
|
||||
+ if (opcode == pBadOption) {
|
||||
+ free(p);
|
||||
+ verbose("Unknown key in PKCS#11 URI: %s", tok);
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ char *arg = tok + strlen(keywords[opcode].name) + 1; /* separator "=" */
|
||||
+ switch (opcode) {
|
||||
@ -3678,7 +3673,6 @@ index 00000000..da15c164
|
||||
+ /* Unrecognized attribute in the URI path SHOULD be error */
|
||||
+ verbose("%s: Unknown part of path in PKCS#11 URI: %s",
|
||||
+ __func__, tok);
|
||||
+ rv = -1;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
|
Loading…
Reference in New Issue
Block a user