{"id":451,"date":"2015-08-04T08:23:51","date_gmt":"2015-08-04T05:23:51","guid":{"rendered":"https:\/\/vtyulb.ru\/blog\/?p=451"},"modified":"2016-03-19T12:45:07","modified_gmt":"2016-03-19T09:45:07","slug":"%d0%be-%d1%87%d1%83%d0%b6%d0%be%d0%bc-%d0%ba%d0%be%d0%b4%d0%b5","status":"publish","type":"post","link":"https:\/\/blog.vtyulb.ru\/?p=451","title":{"rendered":"\u041e \u0447\u0443\u0436\u043e\u043c \u043a\u043e\u0434\u0435"},"content":{"rendered":"<p>\u041f\u0430\u0440\u0443 \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u044f \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043a\u043e\u0434 OpenSSL. \u041e\u043d \u0431\u044b\u043b \u0443\u0436\u0430\u0441\u0435\u043d. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043c\u0435\u043d\u044f \u043f\u043e\u0440\u0430\u0437\u0438\u043b\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f:<\/p>\n<pre>if (0) {\r\n    L1:\r\n    \/\/ some code\r\n}\r\n\r\nif (condition)\r\n    goto L1;\r\n<\/pre>\n<p>\u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u044f \u0440\u0435\u0448\u0438\u043b \u0447\u0442\u043e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f. \u0410 \u043f\u0440\u043e\u0447\u0438\u0435 \u0443\u0436\u0430\u0441\u044b \u043a\u043e\u0434\u0430 \u0441\u0432\u0430\u043b\u0438\u043b \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043e\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430\u043c\u0438.<\/p>\n<p>\u041d\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u044f \u0440\u0435\u0448\u0438\u043b \u0440\u0430\u0441\u043a\u043e\u0432\u044b\u0440\u044f\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 CoolReader \u043f\u0440\u0438 \u0440\u0435\u0441\u0430\u0439\u0437\u0435 \u043e\u043a\u043d\u0430 \u0432 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 kwin \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u0431\u0430\u0433 &#8212; \u043e\u043d \u043f\u0435\u0440\u0435\u043c\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u043a\u043e\u043d\u0435\u0446. \u042d\u0442\u043e \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0440\u0430\u0437\u0440\u0430\u0436\u0430\u0435\u0442 &#8212; \u043f\u043e \u0441\u0443\u0442\u0438 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0445\u043e\u0434, \u044d\u0442\u043e \u043d\u0435 \u0440\u0435\u0441\u0430\u0439\u0437\u0438\u0442\u044c \u043e\u043a\u043d\u043e. \u042f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u0439\u0442\u0438 \u0432 \u0447\u0435\u043c \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0438 \u043f\u043e\u043b\u0435\u0437 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438. \u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0432\u0430\u0442\u044b, \u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 &#8212; \u044d\u0442\u043e&#8230;<\/p>\n<pre>#define XS_IMPLEMENT_SCHEME 1\r\n#include \"..\/include\/fb2def.h\"\r\n\r\n#if 0\r\nvoid SaveBase64Objects( ldomNode * node )\r\n{\r\n    if ( !node-&gt;isElement() || node-&gt;getNodeId()!=el_binary )\r\n    return;\r\n    lString16 name = node-&gt;getAttributeValue(attr_id);\r\n    if ( name.empty() )\r\n    return;\r\n    fprintf( stderr, \"opening base64 stream...\\n\" );\r\n    LVStreamRef in = node-&gt;createBase64Stream();\r\n    if ( in.isNull() )\r\n    return;\r\n    fprintf( stderr, \"base64 stream opened: %d bytes\\n\", (int)in-&gt;GetSize() );\r\n    fprintf( stderr, \"opening out stream...\\n\" );\r\n    LVStreamRef outstream = LVOpenFileStream( name.c_str(), LVOM_WRITE );\r\n    if (outstream.isNull())\r\n    return;\r\n    \/\/outstream-&gt;Write( \"test\", 4, NULL );\r\n    fprintf( stderr, \"streams opened, copying...\\n\" );\r\n    \/*\r\n     lUInt8 dbuf[128000];\r\n     lvsize_t bytesRead = 0;\r\n     if ( in-&gt;Read( dbuf, 128000, &amp;bytesRead )==LVERR_OK )\r\n     {\r\n     fprintf(stderr, \"Read %d bytes, writing...\\n\", (int) bytesRead );\r\n     \/\/outstream-&gt;Write( \"test2\", 5, NULL );\r\n     \/\/outstream-&gt;Write( \"test3\", 5, NULL );\r\n     outstream-&gt;Write( dbuf, 100, NULL );\r\n     outstream-&gt;Write( dbuf, bytesRead, NULL );\r\n     \/\/outstream-&gt;Write( \"test4\", 5, NULL );\r\n     }\r\n     *\/\r\n    LVPumpStream( outstream, in );\r\n    fprintf(stderr, \"...\\n\");\r\n}\r\n#endif\r\n<\/pre>\n<p>\u0410 \u0432\u043e\u0442 \u0442\u0430\u043a \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u0431 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0435 \u0431\u0430\u0442\u0430\u0440\u0435\u0438:<br \/>\n<div><div class=\"spoiler-wrap\"><div class=\"spoiler-head no-icon  collapsed\" title=\"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c\">Code<\/div><div class=\"spoiler-body\" style=\"display: none;\">\n<pre>\r\nstatic const char * battery4[] = {\r\n        \"24 13 4 1\",\r\n        \"0 c #000000\",\r\n        \"o c #A1A1A1\",\r\n        \". c #FFFFFF\",\r\n        \"  c None\",\r\n        \"   .....................\",\r\n        \"   .0000000000000000000.\",\r\n        \"....0.................0.\",\r\n        \".0000.000.000.000.000.0.\",\r\n        \".0..0.000.000.000.000.0.\",\r\n        \".0..0.000.000.000.000.0.\",\r\n        \".0..0.000.000.000.000.0.\",\r\n        \".0..0.000.000.000.000.0.\",\r\n        \".0..0.000.000.000.000.0.\",\r\n        \".0000.000.000.000.000.0.\",\r\n        \"....0.................0.\",\r\n        \"   .0000000000000000000.\",\r\n        \"   .....................\",\r\n    };\r\n    static const char * battery3[] = {\r\n        \"24 13 4 1\",\r\n        \"0 c #000000\",\r\n        \"o c #A1A1A1\",\r\n        \". c #FFFFFF\",\r\n        \"  c None\",\r\n        \"   .....................\",\r\n        \"   .0000000000000000000.\",\r\n        \"....0.................0.\",\r\n        \".0000.ooo.000.000.000.0.\",\r\n        \".0..0.ooo.000.000.000.0.\",\r\n        \".0..0.ooo.000.000.000.0.\",\r\n        \".0..0.ooo.000.000.000.0.\",\r\n        \".0..0.ooo.000.000.000.0.\",\r\n        \".0..0.ooo.000.000.000.0.\",\r\n        \".0000.ooo.000.000.000.0.\",\r\n        \"....0.................0.\",\r\n        \"   .0000000000000000000.\",\r\n        \"   .....................\",\r\n    };\r\n    static const char * battery2[] = {\r\n        \"24 13 4 1\",\r\n        \"0 c #000000\",\r\n        \"o c #A1A1A1\",\r\n        \". c #FFFFFF\",\r\n        \"  c None\",\r\n        \"   .....................\",\r\n        \"   .0000000000000000000.\",\r\n        \"....0.................0.\",\r\n        \".0000.ooo.ooo.000.000.0.\",\r\n        \".0..0.ooo.ooo.000.000.0.\",\r\n        \".0..0.ooo.ooo.000.000.0.\",\r\n        \".0..0.ooo.ooo.000.000.0.\",\r\n        \".0..0.ooo.ooo.000.000.0.\",\r\n        \".0..0.ooo.ooo.000.000.0.\",\r\n        \".0000.ooo.ooo.000.000.0.\",\r\n        \"....0.................0.\",\r\n        \"   .0000000000000000000.\",\r\n        \"   .....................\",\r\n    };\r\n    static const char * battery1[] = {\r\n        \"24 13 4 1\",\r\n        \"0 c #000000\",\r\n        \"o c #A1A1A1\",\r\n        \". c #FFFFFF\",\r\n        \"  c None\",\r\n        \"   .....................\",\r\n        \"   .0000000000000000000.\",\r\n        \"....0.................0.\",\r\n        \".0000.ooo.ooo.ooo.000.0.\",\r\n        \".0..0.ooo.ooo.ooo.000.0.\",\r\n        \".0..0.ooo.ooo.ooo.000.0.\",\r\n        \".0..0.ooo.ooo.ooo.000.0.\",\r\n        \".0..0.ooo.ooo.ooo.000.0.\",\r\n        \".0..0.ooo.ooo.ooo.000.0.\",\r\n        \".0000.ooo.ooo.ooo.000.0.\",\r\n        \"....0.................0.\",\r\n        \"   .0000000000000000000.\",\r\n        \"   .....................\",\r\n    };\r\n    static const char * battery0[] = {\r\n        \"24 13 4 1\",\r\n        \"0 c #000000\",\r\n        \"o c #A1A1A1\",\r\n        \". c #FFFFFF\",\r\n        \"  c None\",\r\n        \"   .....................\",\r\n        \"   .0000000000000000000.\",\r\n        \"....0.................0.\",\r\n        \".0000.ooo.ooo.ooo.ooo.0.\",\r\n        \".0..0.ooo.ooo.ooo.ooo.0.\",\r\n        \".0..0.ooo.ooo.ooo.ooo.0.\",\r\n        \".0..0.ooo.ooo.ooo.ooo.0.\",\r\n        \".0..0.ooo.ooo.ooo.ooo.0.\",\r\n        \".0..0.ooo.ooo.ooo.ooo.0.\",\r\n        \".0000.ooo.ooo.ooo.ooo.0.\",\r\n        \"....0.................0.\",\r\n        \"   .0000000000000000000.\",\r\n        \"   .....................\",\r\n    };\r\n<\/pre>\n<p><\/p><\/div><noscript><div class=\"spoiler-body\">\n<pre>\r\nstatic const char * battery4[] = {\r\n        \"24 13 4 1\",\r\n        \"0 c #000000\",\r\n        \"o c #A1A1A1\",\r\n        \". c #FFFFFF\",\r\n        \"  c None\",\r\n        \"   .....................\",\r\n        \"   .0000000000000000000.\",\r\n        \"....0.................0.\",\r\n        \".0000.000.000.000.000.0.\",\r\n        \".0..0.000.000.000.000.0.\",\r\n        \".0..0.000.000.000.000.0.\",\r\n        \".0..0.000.000.000.000.0.\",\r\n        \".0..0.000.000.000.000.0.\",\r\n        \".0..0.000.000.000.000.0.\",\r\n        \".0000.000.000.000.000.0.\",\r\n        \"....0.................0.\",\r\n        \"   .0000000000000000000.\",\r\n        \"   .....................\",\r\n    };\r\n    static const char * battery3[] = {\r\n        \"24 13 4 1\",\r\n        \"0 c #000000\",\r\n        \"o c #A1A1A1\",\r\n        \". c #FFFFFF\",\r\n        \"  c None\",\r\n        \"   .....................\",\r\n        \"   .0000000000000000000.\",\r\n        \"....0.................0.\",\r\n        \".0000.ooo.000.000.000.0.\",\r\n        \".0..0.ooo.000.000.000.0.\",\r\n        \".0..0.ooo.000.000.000.0.\",\r\n        \".0..0.ooo.000.000.000.0.\",\r\n        \".0..0.ooo.000.000.000.0.\",\r\n        \".0..0.ooo.000.000.000.0.\",\r\n        \".0000.ooo.000.000.000.0.\",\r\n        \"....0.................0.\",\r\n        \"   .0000000000000000000.\",\r\n        \"   .....................\",\r\n    };\r\n    static const char * battery2[] = {\r\n        \"24 13 4 1\",\r\n        \"0 c #000000\",\r\n        \"o c #A1A1A1\",\r\n        \". c #FFFFFF\",\r\n        \"  c None\",\r\n        \"   .....................\",\r\n        \"   .0000000000000000000.\",\r\n        \"....0.................0.\",\r\n        \".0000.ooo.ooo.000.000.0.\",\r\n        \".0..0.ooo.ooo.000.000.0.\",\r\n        \".0..0.ooo.ooo.000.000.0.\",\r\n        \".0..0.ooo.ooo.000.000.0.\",\r\n        \".0..0.ooo.ooo.000.000.0.\",\r\n        \".0..0.ooo.ooo.000.000.0.\",\r\n        \".0000.ooo.ooo.000.000.0.\",\r\n        \"....0.................0.\",\r\n        \"   .0000000000000000000.\",\r\n        \"   .....................\",\r\n    };\r\n    static const char * battery1[] = {\r\n        \"24 13 4 1\",\r\n        \"0 c #000000\",\r\n        \"o c #A1A1A1\",\r\n        \". c #FFFFFF\",\r\n        \"  c None\",\r\n        \"   .....................\",\r\n        \"   .0000000000000000000.\",\r\n        \"....0.................0.\",\r\n        \".0000.ooo.ooo.ooo.000.0.\",\r\n        \".0..0.ooo.ooo.ooo.000.0.\",\r\n        \".0..0.ooo.ooo.ooo.000.0.\",\r\n        \".0..0.ooo.ooo.ooo.000.0.\",\r\n        \".0..0.ooo.ooo.ooo.000.0.\",\r\n        \".0..0.ooo.ooo.ooo.000.0.\",\r\n        \".0000.ooo.ooo.ooo.000.0.\",\r\n        \"....0.................0.\",\r\n        \"   .0000000000000000000.\",\r\n        \"   .....................\",\r\n    };\r\n    static const char * battery0[] = {\r\n        \"24 13 4 1\",\r\n        \"0 c #000000\",\r\n        \"o c #A1A1A1\",\r\n        \". c #FFFFFF\",\r\n        \"  c None\",\r\n        \"   .....................\",\r\n        \"   .0000000000000000000.\",\r\n        \"....0.................0.\",\r\n        \".0000.ooo.ooo.ooo.ooo.0.\",\r\n        \".0..0.ooo.ooo.ooo.ooo.0.\",\r\n        \".0..0.ooo.ooo.ooo.ooo.0.\",\r\n        \".0..0.ooo.ooo.ooo.ooo.0.\",\r\n        \".0..0.ooo.ooo.ooo.ooo.0.\",\r\n        \".0..0.ooo.ooo.ooo.ooo.0.\",\r\n        \".0000.ooo.ooo.ooo.ooo.0.\",\r\n        \"....0.................0.\",\r\n        \"   .0000000000000000000.\",\r\n        \"   .....................\",\r\n    };\r\n<\/pre>\n<p><\/p><\/div><\/noscript><\/div><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0430\u0440\u0443 \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u044f \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043a\u043e\u0434 OpenSSL. \u041e\u043d \u0431\u044b\u043b \u0443\u0436\u0430\u0441\u0435\u043d. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043c\u0435\u043d\u044f \u043f\u043e\u0440\u0430\u0437\u0438\u043b\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f: if (0) { L1: \/\/ some code } if (condition) goto L1; \u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u044f \u0440\u0435\u0448\u0438\u043b \u0447\u0442\u043e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f. \u0410 \u043f\u0440\u043e\u0447\u0438\u0435 \u0443\u0436\u0430\u0441\u044b \u043a\u043e\u0434\u0430 \u0441\u0432\u0430\u043b\u0438\u043b \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043e\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430\u043c\u0438. \u041d\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u044f \u0440\u0435\u0448\u0438\u043b \u0440\u0430\u0441\u043a\u043e\u0432\u044b\u0440\u044f\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[17,44,33,6],"class_list":["post-451","post","type-post","status-publish","format-standard","hentry","category-59","tag-17","tag-44","tag-33","tag-6"],"_links":{"self":[{"href":"https:\/\/blog.vtyulb.ru\/index.php?rest_route=\/wp\/v2\/posts\/451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.vtyulb.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vtyulb.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vtyulb.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vtyulb.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=451"}],"version-history":[{"count":5,"href":"https:\/\/blog.vtyulb.ru\/index.php?rest_route=\/wp\/v2\/posts\/451\/revisions"}],"predecessor-version":[{"id":456,"href":"https:\/\/blog.vtyulb.ru\/index.php?rest_route=\/wp\/v2\/posts\/451\/revisions\/456"}],"wp:attachment":[{"href":"https:\/\/blog.vtyulb.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vtyulb.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vtyulb.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}