|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
MIN_URL_SIZE problem in checkRFC822(...)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. |
|
|
Re: MIN_URL_SIZE problem in checkRFC822(...)Juraj Michalak <juraj.michalak@...> writes:
>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 ); Thanks, the correct check should actually be: REQUIRES( urlLength >= MIN_RFC822_SIZE && urlLength < MAX_URL_SIZE ); >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. There aren't any manpages because they're not terribly useful as documentation (um, this could get into a long debate over documentation styles and quality :-). You're welcome to create manpages if you like and I can add them to the cryptlib distribution, but it'd be better I think to get feedback on bits of the manual that need clarification. Peter. _______________________________________________ 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. |
| Free embeddable forum powered by Nabble | Forum Help |