• <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.¢%

            像打了激速一樣,以四倍的速度運(yùn)轉(zhuǎn),開(kāi)心的工作
            簡(jiǎn)單、開(kāi)放、平等的公司文化;尊重個(gè)性、自由與個(gè)人價(jià)值;
            posts - 1098, comments - 335, trackbacks - 0, articles - 1
              C++博客 :: 首頁(yè) :: 新隨筆 :: 聯(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.

            ?

            久久人与动人物a级毛片| 99久久精品九九亚洲精品| 国产精品VIDEOSSEX久久发布| 色诱久久av| 亚洲AV乱码久久精品蜜桃| 久久AV无码精品人妻糸列| 久久人人爽人人爽人人片AV不| 亚洲女久久久噜噜噜熟女| www久久久天天com| 女同久久| 久久天天躁狠狠躁夜夜avapp| 日本免费一区二区久久人人澡| 久久激情五月丁香伊人| 少妇人妻综合久久中文字幕| 久久久老熟女一区二区三区| 久久国产精品国产自线拍免费 | 亚洲精品乱码久久久久久蜜桃不卡| 久久精品国产亚洲AV嫖农村妇女| 久久亚洲国产午夜精品理论片| 久久AV高清无码| 亚洲?V乱码久久精品蜜桃| 久久国产成人午夜AV影院| 一本一本久久A久久综合精品| 青草影院天堂男人久久| 亚洲精品无码久久千人斩| 97超级碰碰碰久久久久| 久久久久国产一区二区| 伊人色综合久久天天人手人婷| 一级做a爰片久久毛片人呢| 99久久国产精品免费一区二区| 狠狠综合久久综合中文88 | 亚洲欧美伊人久久综合一区二区| 99久久精品无码一区二区毛片 | 合区精品久久久中文字幕一区 | 国产免费久久精品99re丫y| 久久精品国产91久久麻豆自制 | 午夜精品久久久久久99热| 久久精品日日躁夜夜躁欧美| 精品多毛少妇人妻AV免费久久| 青青草国产97免久久费观看| 伊人久久大香线蕉无码麻豆|