summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorkroki/tomash@moonlight.intranet <>2006-08-09 13:37:20 +0400
committerkroki/tomash@moonlight.intranet <>2006-08-09 13:37:20 +0400
commit5c272816ca36e7ccb402ded339f4ffd2894ced5c (patch)
tree21c67f22e21375044ef6217a225616bac076de72 /extra
parent21f7f347762079fe907574fc73e6b549f4749d9e (diff)
parent4a461fdae3bbb7ce5afdc1b909899bcc6c6d93fe (diff)
downloadmariadb-git-5c272816ca36e7ccb402ded339f4ffd2894ced5c.tar.gz
Merge moonlight.intranet:/home/tomash/src/mysql_ab/tmp_merge
into moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.1-merge
Diffstat (limited to 'extra')
-rw-r--r--extra/yassl/taocrypt/include/asn.hpp8
-rw-r--r--extra/yassl/taocrypt/src/asn.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/extra/yassl/taocrypt/include/asn.hpp b/extra/yassl/taocrypt/include/asn.hpp
index 90bc46a59fd..8bea2ae780b 100644
--- a/extra/yassl/taocrypt/include/asn.hpp
+++ b/extra/yassl/taocrypt/include/asn.hpp
@@ -103,7 +103,7 @@ enum Constants
MAX_ALGO_SIZE = 9,
MAX_DIGEST_SZ = 25, // SHA + enum(Bit or Octet) + length(4)
DSA_SIG_SZ = 40,
- NAME_MAX = 512 // max total of all included names
+ ASN_NAME_MAX = 512 // max total of all included names
};
@@ -216,7 +216,7 @@ enum { SHA_SIZE = 20 };
// A Signing Authority
class Signer {
PublicKey key_;
- char name_[NAME_MAX];
+ char name_[ASN_NAME_MAX];
byte hash_[SHA_SIZE];
public:
Signer(const byte* k, word32 kSz, const char* n, const byte* h);
@@ -270,8 +270,8 @@ private:
byte subjectHash_[SHA_SIZE]; // hash of all Names
byte issuerHash_[SHA_SIZE]; // hash of all Names
byte* signature_;
- char issuer_[NAME_MAX]; // Names
- char subject_[NAME_MAX]; // Names
+ char issuer_[ASN_NAME_MAX]; // Names
+ char subject_[ASN_NAME_MAX]; // Names
char beforeDate_[MAX_DATE_SZ]; // valid before date
char afterDate_[MAX_DATE_SZ]; // valid after date
bool verify_; // Default to yes, but could be off
diff --git a/extra/yassl/taocrypt/src/asn.cpp b/extra/yassl/taocrypt/src/asn.cpp
index beb5490bb66..45fb1e60a0c 100644
--- a/extra/yassl/taocrypt/src/asn.cpp
+++ b/extra/yassl/taocrypt/src/asn.cpp
@@ -665,7 +665,7 @@ void CertDecoder::GetName(NameType nt)
SHA sha;
word32 length = GetSequence(); // length of all distinguished names
- assert (length < NAME_MAX);
+ assert (length < ASN_NAME_MAX);
length += source_.get_index();
char* ptr = (nt == ISSUER) ? issuer_ : subject_;