[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-49]

fix doc typos
This commit is contained in:
Robey Pointer 2004-04-08 06:31:08 +00:00
parent 11799765e2
commit 2feddf8ef7
3 changed files with 8 additions and 7 deletions

View File

@ -145,9 +145,9 @@ class DSSKey (PKey):
generate a new host key or authentication key. generate a new host key or authentication key.
@param bits: number of bits the generated key should be. @param bits: number of bits the generated key should be.
@type bites: int @type bits: int
@param progress_func: an optional function to call at key points in @param progress_func: an optional function to call at key points in
key generation (used by L{pyCrypto.PublicKey}). key generation (used by C{pyCrypto.PublicKey}).
@type progress_func: function @type progress_func: function
@return: new private key @return: new private key
@rtype: L{DSSKey} @rtype: L{DSSKey}

View File

@ -136,9 +136,9 @@ class RSAKey (PKey):
generate a new host key or authentication key. generate a new host key or authentication key.
@param bits: number of bits the generated key should be. @param bits: number of bits the generated key should be.
@type bites: int @type bits: int
@param progress_func: an optional function to call at key points in @param progress_func: an optional function to call at key points in
key generation (used by L{pyCrypto.PublicKey}). key generation (used by C{pyCrypto.PublicKey}).
@type progress_func: function @type progress_func: function
@return: new private key @return: new private key
@rtype: L{RSAKey} @rtype: L{RSAKey}

View File

@ -348,13 +348,14 @@ class BaseTransport (threading.Thread):
Return the host key of the server (in client mode). Return the host key of the server (in client mode).
@note: Previously this call returned a tuple of (key type, key string). @note: Previously this call returned a tuple of (key type, key string).
You can get the same effect by calling L{PKey.get_name} for the key You can get the same effect by calling
type, and C{str(key)} for the key string. L{PKey.get_name <pkey.PKey.get_name>} for the key type, and C{str(key)}
for the key string.
@raise SSHException: if no session is currently active. @raise SSHException: if no session is currently active.
@return: public key of the remote server. @return: public key of the remote server.
@rtype: L{PKey} @rtype: L{PKey <pkey.PKey>}
""" """
if (not self.active) or (not self.initial_kex_done): if (not self.active) or (not self.initial_kex_done):
raise SSHException('No existing session') raise SSHException('No existing session')