/[rdesktop]/sourceforge.net/trunk/rdesktop/ssl.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/ssl.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1376 by jsorg71, Tue Jan 9 07:24:44 2007 UTC revision 1377 by jsorg71, Thu Jan 11 03:30:18 2007 UTC
# Line 88  void Line 88  void
88  ssl_rsa_encrypt(uint8 * out, uint8 * in, int len, uint32 modulus_size, uint8 * modulus,  ssl_rsa_encrypt(uint8 * out, uint8 * in, int len, uint32 modulus_size, uint8 * modulus,
89                  uint8 * exponent)                  uint8 * exponent)
90  {  {
91          BN_CTX * ctx;          BN_CTX *ctx;
92          BIGNUM mod, exp, x, y;          BIGNUM mod, exp, x, y;
93          uint8 inr[SEC_MAX_MODULUS_SIZE];          uint8 inr[SEC_MAX_MODULUS_SIZE];
94          int outlen;          int outlen;
# Line 138  ssl_cert_free(SSL_CERT * cert) Line 138  ssl_cert_free(SSL_CERT * cert)
138  SSL_RKEY *  SSL_RKEY *
139  ssl_cert_to_rkey(SSL_CERT * cert, uint32 * key_len)  ssl_cert_to_rkey(SSL_CERT * cert, uint32 * key_len)
140  {  {
141          EVP_PKEY * epk = NULL;          EVP_PKEY *epk = NULL;
142          SSL_RKEY * lkey;          SSL_RKEY *lkey;
143          /* By some reason, Microsoft sets the OID of the Public RSA key to          /* By some reason, Microsoft sets the OID of the Public RSA key to
144             the oid for "MD5 with RSA Encryption" instead of "RSA Encryption"             the oid for "MD5 with RSA Encryption" instead of "RSA Encryption"
145    
# Line 176  ssl_certs_ok(SSL_CERT * server_cert, SSL Line 176  ssl_certs_ok(SSL_CERT * server_cert, SSL
176             server we are connecting to as key, and compare it             server we are connecting to as key, and compare it
177             when we connect the next time, in order to prevent             when we connect the next time, in order to prevent
178             MITM-attacks.             MITM-attacks.
179          */           */
180          return True;          return True;
181  }  }
182    
# Line 217  ssl_sig_ok(uint8 * exponent, uint32 exp_ Line 217  ssl_sig_ok(uint8 * exponent, uint32 exp_
217  {  {
218          /* Currently, we don't check the signature          /* Currently, we don't check the signature
219             FIXME:             FIXME:
220          */           */
221          return True;          return True;
222  }  }

Legend:
Removed from v.1376  
changed lines
  Added in v.1377

  ViewVC Help
Powered by ViewVC 1.1.26