parent
1269057246
commit
2f12245991
@ -1,59 +0,0 @@
|
|||||||
diff --git a/libpskc/man/pskc_get_key_algparm_chall_max.3 b/libpskc/man/pskc_get_key_algparm_chall_max.3
|
|
||||||
index 6ae79a3..2001320 100644
|
|
||||||
--- a/libpskc/man/pskc_get_key_algparm_chall_max.3
|
|
||||||
+++ b/libpskc/man/pskc_get_key_algparm_chall_max.3
|
|
||||||
@@ -15,8 +15,8 @@ output variable indicating whether data was provided or not.
|
|
||||||
Get the PSKC KeyPackage Key AlgorithmParameters ChallengeFormat Max
|
|
||||||
value. This attribute defines the maximum size of the challenge
|
|
||||||
accepted by the device for CR mode and MUST be included. If the
|
|
||||||
-'Encoding' attribute is set to 'DECIMAL', 'HEXADECIMAL', or
|
|
||||||
-'ALPHANUMERIC', this value indicates the maximum number of
|
|
||||||
+\&'Encoding' attribute is set to 'DECIMAL', 'HEXADECIMAL', or
|
|
||||||
+\&'ALPHANUMERIC', this value indicates the maximum number of
|
|
||||||
digits/characters. If the 'Encoding' attribute is set to 'BASE64'
|
|
||||||
or 'BINARY', this value indicates the maximum number of bytes of
|
|
||||||
the unencoded value.
|
|
||||||
diff --git a/libpskc/man/pskc_get_key_algparm_chall_min.3 b/libpskc/man/pskc_get_key_algparm_chall_min.3
|
|
||||||
index 85009d6..6e51e52 100644
|
|
||||||
--- a/libpskc/man/pskc_get_key_algparm_chall_min.3
|
|
||||||
+++ b/libpskc/man/pskc_get_key_algparm_chall_min.3
|
|
||||||
@@ -15,8 +15,8 @@ output variable indicating whether data was provided or not.
|
|
||||||
Get the PSKC KeyPackage Key AlgorithmParameters ChallengeFormat Min
|
|
||||||
value. This attribute defines the minimum size of the challenge
|
|
||||||
accepted by the device for CR mode and MUST be included. If the
|
|
||||||
-'Encoding' attribute is set to 'DECIMAL', 'HEXADECIMAL', or
|
|
||||||
-'ALPHANUMERIC', this value indicates the minimum number of
|
|
||||||
+\&'Encoding' attribute is set to 'DECIMAL', 'HEXADECIMAL', or
|
|
||||||
+\&'ALPHANUMERIC', this value indicates the minimum number of
|
|
||||||
digits/characters. If the 'Encoding' attribute is set to 'BASE64'
|
|
||||||
or 'BINARY', this value indicates the minimum number of bytes of
|
|
||||||
the unencoded value.
|
|
||||||
diff --git a/libpskc/man/pskc_get_key_policy_pinmaxlength.3 b/libpskc/man/pskc_get_key_policy_pinmaxlength.3
|
|
||||||
index be96a9a..d4ce51e 100644
|
|
||||||
--- a/libpskc/man/pskc_get_key_policy_pinmaxlength.3
|
|
||||||
+++ b/libpskc/man/pskc_get_key_policy_pinmaxlength.3
|
|
||||||
@@ -16,9 +16,9 @@ Get the PSKC KeyPackage Key Policy PINPolicy MaxLength value. This
|
|
||||||
attribute indicates the maximum length of a PIN that can be set to
|
|
||||||
protect this key. It MUST NOT be possible to set a PIN longer than
|
|
||||||
this value. If the 'PINFormat' attribute is set to 'DECIMAL',
|
|
||||||
-'HEXADECIMAL', or 'ALPHANUMERIC', this value indicates the number
|
|
||||||
+\&'HEXADECIMAL', or 'ALPHANUMERIC', this value indicates the number
|
|
||||||
of digits/ characters. If the 'PINFormat' attribute is set to
|
|
||||||
-'BASE64' or 'BINARY', this value indicates the number of bytes of
|
|
||||||
+\&'BASE64' or 'BINARY', this value indicates the number of bytes of
|
|
||||||
the unencoded value.
|
|
||||||
|
|
||||||
If \fIpresent\fP is non\-NULL, it will be 0 if the field is not present
|
|
||||||
diff --git a/libpskc/man/pskc_get_key_policy_pinminlength.3 b/libpskc/man/pskc_get_key_policy_pinminlength.3
|
|
||||||
index c00523d..a5efe53 100644
|
|
||||||
--- a/libpskc/man/pskc_get_key_policy_pinminlength.3
|
|
||||||
+++ b/libpskc/man/pskc_get_key_policy_pinminlength.3
|
|
||||||
@@ -16,7 +16,7 @@ Get the PSKC KeyPackage Key Policy PINPolicy MinLength value. This
|
|
||||||
attribute indicates the minimum length of a PIN that can be set to
|
|
||||||
protect the associated key. It MUST NOT be possible to set a PIN
|
|
||||||
shorter than this value. If the 'PINFormat' attribute is set to
|
|
||||||
-'DECIMAL', 'HEXADECIMAL', or 'ALPHANUMERIC', this value indicates
|
|
||||||
+\&'DECIMAL', 'HEXADECIMAL', or 'ALPHANUMERIC', this value indicates
|
|
||||||
the number of digits/ characters. If the 'PINFormat' attribute is
|
|
||||||
set to 'BASE64' or 'BINARY', this value indicates the number of
|
|
||||||
bytes of the unencoded value.
|
|
@ -1,42 +0,0 @@
|
|||||||
--- a/libpskc/build.c
|
|
||||||
+++ a/libpskc/build.c
|
|
||||||
@@ -510,7 +510,7 @@ pskc_build_xml (pskc_t * container, char **out, size_t * len)
|
|
||||||
|
|
||||||
xmlDocSetRootElement (doc, keycont);
|
|
||||||
|
|
||||||
- if (container->xmldoc)
|
|
||||||
+ if (container->xmldoc && container->xmldoc != container->original_xmldoc)
|
|
||||||
xmlFreeDoc (container->xmldoc);
|
|
||||||
container->xmldoc = doc;
|
|
||||||
doc = NULL;
|
|
||||||
--- a/libpskc/internal.h
|
|
||||||
+++ a/libpskc/internal.h
|
|
||||||
@@ -103,7 +103,7 @@ struct pskc_key
|
|
||||||
struct pskc
|
|
||||||
{
|
|
||||||
/* raw XML */
|
|
||||||
- xmlDocPtr xmldoc;
|
|
||||||
+ xmlDocPtr xmldoc, original_xmldoc;
|
|
||||||
/* Is there a Signature element in xmldoc? */
|
|
||||||
int signed_p;
|
|
||||||
|
|
||||||
--- a/libpskc/parser.c
|
|
||||||
+++ a/libpskc/parser.c
|
|
||||||
@@ -677,6 +677,8 @@ pskc_done (pskc_t * container)
|
|
||||||
return;
|
|
||||||
|
|
||||||
xmlFreeDoc (container->xmldoc);
|
|
||||||
+ if (container->original_xmldoc != container->xmldoc)
|
|
||||||
+ xmlFreeDoc (container->original_xmldoc);
|
|
||||||
|
|
||||||
for (i = 0; i < container->nkeypackages; i++)
|
|
||||||
{
|
|
||||||
@@ -717,7 +719,7 @@ pskc_parse_from_memory (pskc_t * container, size_t len, const char *buffer)
|
|
||||||
if (xmldoc == NULL)
|
|
||||||
return PSKC_XML_ERROR;
|
|
||||||
|
|
||||||
- container->xmldoc = xmldoc;
|
|
||||||
+ container->original_xmldoc = container->xmldoc = xmldoc;
|
|
||||||
|
|
||||||
root = xmlDocGetRootElement (xmldoc);
|
|
||||||
parse_keycontainer (container, root, &rc);
|
|
@ -1 +1 @@
|
|||||||
SHA512 (oath-toolkit-2.6.3.tar.gz) = 878017638c7333b23e6abd7efcca8489e4f11fce0dd25cb588b95a9368f290c1235db1d44f93a01c1492e9f057000fb8864673d9fca448bbf336090fddcfc696
|
SHA512 (oath-toolkit-2.6.4.tar.gz) = a77b3250769e763eb0fa5904339d82ec962709225aeff8176d65e460961826690a040c0de76969134256aad74429629891ca2bd8b9a8fc849d58d99ecf559197
|
||||||
|
Loading…
Reference in new issue