• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            S.l.e!ep.¢%

            像打了激速一樣,以四倍的速度運轉(zhuǎn),開心的工作
            簡單、開放、平等的公司文化;尊重個性、自由與個人價值;
            posts - 1098, comments - 335, trackbacks - 0, articles - 1
              C++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            Application crashes when trying to access X509 Certificate Extension returned by X509_get_ext method
            by Sanjay Bhat

            Google me that
            ?REPLY TO AUTHOR??
            ?? Google me that
            ?REPLY TO GROUP??
            ?

            ?

            --------------------------------------------------------------------------------

            ?

            ?


            Hi,

            Our application running in windows 2008 64-bit platform crashes when we try to access the data member of X509_EXTENSION returned by X509_get_ext().

            We are using? 0.9.8d version of openssl compiled for windows 64 bit platform.

            We are clueless why this is happening and are badly stuck with this. Please help us.

            Here is the code snippet of our application with the point of crash in bold :

            BOOL GetX509ObjectString(X509 *Certificate, unsigned char *ASN1, unsigned char *Short, unsigned char *Description, unsigned char *Buffer, unsigned long BufSize)
            {
            ??? X509_EXTENSION????? *Extension;
            ??? int???????????????? nid;
            ??? int???????????????? Position;
            ??? ASN1_STRING???????? *Value;
            ??? unsigned char?????? *OrgPtr;

            ??? if (!Buffer) {
            ??????? return(FALSE);
            ??? }
            ??? Buffer[0]='\0';

            ??? nid = OBJ_create(ASN1, Short, Description);
            ??? Position=X509_get_ext_by_NID(Certificate, nid, -1);
            ??? if (Position==-1) {
            ??????? return(FALSE);
            ??? }
            ????
            Extension=X509_get_ext(Certificate, Position);
            ? if (!Extension) {
            ??????? return(FALSE);
            ??? }

            ??? /* The M_d2i function alters the pointer, so keep a copy */
            ??? OrgPtr=Extension->value->data; //This is the point of crash. Referencing data member seems to be causing the crash
            ??? Value=M_d2i_ASN1_IA5STRING(NULL, &(Extension->value->data), Extension->value->length);
            ??? Extension->value->data=OrgPtr;
            ??? strncpy(Buffer, Value->data, min(Value->length+1, BufSize));
            ??? Buffer[min(Value->length+1, BufSize)-1]='\0';
            ??? ASN1_STRING_free(Value);

            ??? return(TRUE);
            }

            Appreciate any kind of help on this is greatly appreciated.

            Thanks & Regards,
            Sanjay.

            ?

            国内精品久久久久国产盗摄| 91精品免费久久久久久久久| 婷婷久久综合九色综合九七| 亚洲日本va午夜中文字幕久久| 久久精品国产第一区二区| 手机看片久久高清国产日韩| 久久婷婷五月综合国产尤物app | 久久亚洲精品成人av无码网站| 久久久免费精品re6| 国产亚洲美女精品久久久| 久久这里的只有是精品23| 久久99国内精品自在现线| 久久最新精品国产| 久久精品免费一区二区| 99久久精品这里只有精品 | 久久青青草原精品国产不卡| 久久国语露脸国产精品电影| 久久97精品久久久久久久不卡| 日批日出水久久亚洲精品tv| 国内精品九九久久久精品| 亚洲愉拍99热成人精品热久久| 开心久久婷婷综合中文字幕| 久久国产精品-国产精品| 久久久久亚洲AV成人网人人网站| 精品乱码久久久久久夜夜嗨| 国产精品免费福利久久| 亚洲精品无码久久久久sm| 四虎影视久久久免费| 久久青青国产| 国产午夜电影久久| 久久久精品免费国产四虎| 亚洲国产精品无码久久| 国产69精品久久久久9999APGF| 久久久久国产精品嫩草影院| 狠狠精品干练久久久无码中文字幕 | 久久综合久久自在自线精品自| 久久福利片| 久久久久女教师免费一区| 久久男人AV资源网站| 久久综合精品国产一区二区三区 | 久久无码人妻一区二区三区午夜|