« Return to Thread: MIN_URL_SIZE problem in checkRFC822(...)

MIN_URL_SIZE problem in checkRFC822(...)

by Juraj Michalak :: Rate this Message:

Reply to Author | View in Thread

Hello,

I have chosen cryptlib for my master's thesis project. I also want to
thank you for this lib.

I had following little problem in my "test program":
...
status = cryptSetAttributeString(certificate, CRYPT_CERTINFO_COMMONNAME,
labels[i], strlen(labels[i]));
...
status = cryptSetAttributeString( certificate,
CRYPT_CERTINFO_RFC822NAME, labels[i], strlen(labels[i]));
...
cryptSetAttribute(certificate, CRYPT_CERTINFO_SUBJECTPUBLICKEYINFO,
keypair);
...
status = cryptSignCert(certificate, keypair); -----> here I had an ERROR

My observation:

checkRFC822(...) [cert/ext_def.c:2718] was called for identifier (I have
used "root@amd" - amd is virtual server in my test environment and don't
be sad I also have intel) -> checkURLString(...) [cert/ext_def.c:2588]
-> and at the beginning:

REQUIRES( urlLength >= MIN_URL_SIZE && urlLength < MAX_URL_SIZE );

-> this is there even if the "urlType" is "URL_RFC822"

My fast solution was to continue in my work:

// CHANGED:
//#define MIN_URL_SIZE                  12                      /*
http://x.com */
#define MIN_URL_SIZE                    3                       /* a@b -
because also MAIL*/

But it's not nice/good solution or even solution.

I'm also reading your manual. I have copied reference part from your PDF
to plain text file. I'm making extra notes from manual to that txt file
- to have more info in function reference. I can provide it and also
others can contribute. Is there any version system available? It would
be nice to have full MAN pages for cryptlib.

best regards

Juraj Michalak

_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.

 « Return to Thread: MIN_URL_SIZE problem in checkRFC822(...)