SecureXMLRPcserver.

SecureXMLRPCServer´Â PyopenssL 0.5¸¦ »ç¿ëÇÏ´Â Python ¸ðµâÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

SecureXMLRPcserver. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Public Domain
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Michal J. Wallace
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://www.sabren.net/code/python/

SecureXMLRPcserver. ű×


SecureXMLRPcserver. ¼³¸í

SecureXMLRPCServer´Â Pyopenssl 0.5¸¦ »ç¿ëÇÏ´Â Python ¸ðµâÀÔ´Ï´Ù. SecureXMLRPCServer´Â Pyopenssl 0.5¸¦ »ç¿ëÇÏ´Â Python ¸ðµâÀÔ´Ï´Ù. Ç¥ÁØ Python Library.Example¿¡¼­ SimpleXMLRPCServer¿¡ ´ëÇÑ µå·Ó ÀÎ ±³Ã¼·Î ÀÛµ¿ÇÕ´Ï´Ù. SocketServerImport OS, SocketImport SimpleXMLRPcServerFrom OpenSSL °¡Á® ¿À±â SSLBUGFIX : ""SSL ¿¬°áÀº SENDALL¿¡¼­ »ç¸ÁÇÏ´Â °æÇâÀÌ ÀÖ½À´Ï´Ù. ÀÌ°ÍÀº SocketServer (¹× Å°Áî)°¡ ¿¬°áÀ» ÀÏ¹Ý ÆÄÀϷΠó¸® ÇÒ ¼öÀÖ´Â socket._fileObject¿¡ ÀÇÇØ È£ÃâµË´Ï´Ù. ""def __init __ (self, conn) : "" "¿¡ ´ëÇؼ­´Â ¿¬°áÀ» ÇÏÀ§ Ŭ·¡½º ÇÒ ¼ö ¾ø½À´Ï´Ù. ±×·¡¼­ ´ë½Å ÇÁ·Ï½Ã¸¦ ¸¸µé°í ÀÖ½À´Ï´Ù. ""ÀÚü .__ "" "conn"= conn def __getattr __ (ÀÚü, À̸§) : return getAttr (self .__ dict __ . send (µ¥ÀÌÅÍ) def shutdown (self, how = 1) :" ""¹ö±× ¼öÁ¤ÀÇ ÀϺΰ¡ ¾Æ´Õ´Ï´Ù. . SimpleXMLRPCServer.Dopost´Â Á¾·á (1) ¹× ConnÀ» È£ÃâÇÕ´Ï´Ù. ectection.shutdown ()Àº ³íÀïÀ»ÇÏÁö ¾Ê½À´Ï´Ù. ±×·¡¼­ ¿ì¸®´Â ´ÜÁö ±×°ÍÀ» Æó±âÇÕ´Ï´Ù. ""ÀÚü .__ dict __ . shutdown () def (self) : "" "shutdown () ÇØ°á ¹æ¹ýÀÇ ´Ù¸¥ ºÎºÐÀÔ´Ï´Ù. ¼­¹ö°¡ »õ ¼ÒÄÏÀ» »ý¼ºÇϱ⠶§¹®¿¡ ¿ì¸®´Â ±×µéÀ» ¿ì¸®ÀÇ ¸¶¹ýÀ¸·Î °¨¿°½ÃÄѾßÇÕ´Ï´Ù. :) "" "c, a = self .__ dict __ . accept () return (sslbugfix (c), a) class securetcpserver (socketserver.tcpserver) : tcpserver¿Í ¸¶Âù°¡Áö·Î" "". ÀÌ°ÍÀº Á¤¸»·Î Å°¿Í ÀÎÁõ¼­ ÆÄÀÏÀ» ÁöÁ¤ÇÒ ¼öÀÖ°Ô ÇØÁÖ´Â °ÍÀÔ´Ï´Ù. ""DEF __ (ÀÚü, SERVER_ADDRESS, RequestHandlerClass) : socketserver.baseServer .__ init __ (self, server_address, requesthandlerclass) ## Á¤»óÀûÀ¸·Î µ¿ÀÏÇÏÁö¸¸ º¸¾È : ctx = ssl.context (ssl.sslv23_method) ctx.set_options ( ssl.op_no_sslv2) dir = os.curdir ctx.use_privatekey_file (os.path.join (dir, 'server.pkey')) ctx.use_certificate_file (os.path.join (dir, 'server.cert')) self.socket = sslbugfix (ssl.connection (ctx, socky.socky)) self.server_bind () self.server_activate () class secureXmlrpcRequestHandler (simplexmlrpcserver.simplexmlrpcRequestHandler) : DEF ¼³Á¤ (ÀÚü) : "" " ssl.connection¿¡´Â 'dup'ÀÌ ¾ø±â ¶§¹®¿¡ socket._fileObject¸¦ »ç¿ëÇؾßÇÕ´Ï´Ù. ÀÌ°ÍÀÌ ÀÌÀ¯°¡ÀÖ´Â ÀÌÀ¯¸¦ Á¤È®È÷ È®½ÇÇÏÁö´Â ¾ÊÁö¸¸ ÀÌ°ÍÀº socket.py ¹× ssl / connection.c "" "self.connection.c" ""self.connection.c "" "ÀÇ ÁÖ¼®¿¡ ÀÇÇØ ¹é¾÷µË´Ï´Ù. dopost for dopost self.rfile = socket._fileObject (self.request" rb ", self.rbufsize) self.wfile = socket._fileObject (self.request,"wb ", self.wbufsize) class secureXMLRPCServer (simplexmlrpcserver.simplexmlrpcserver) : DEF __init __ (self, addr, requestHandler = secureXmlrpcRequestHandler, logRequests = 1) : "" "Simplexmlrpcserver .__ init__ ÀÌ¿ÜÀÇ ¶È°°Àº ÄÚµå´Â ÀÏ¹Ý ¿À·¡µÈ TCPServer .__ init__ ´ë½Å ________" ""\ \ vuncs = @ \ excel.instance = none securetcpserver .__ init __ ( ÀÚü, ADDR, RequestHandler) ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã


SecureXMLRPcserver. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

µµ¹Ö°í

Domingo´Â Lotus Notes / Domino Java-API¿¡ ´ëÇÑ °£´ÜÇÏ°í ÀÏ°üµÇ°í °´Ã¼ ÁöÇâÀû ÀÎ ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù. ...

175

´Ù¿î·Îµå