Back to index

lightning-sunbird  0.9+nobinonly
Functions
sslreveal.c File Reference
#include "cert.h"
#include "ssl.h"
#include "certt.h"
#include "sslimpl.h"

Go to the source code of this file.

Functions

CERTCertificate * SSL_RevealCert (PRFileDesc *fd)
voidSSL_RevealPinArg (PRFileDesc *fd)
char * SSL_RevealURL (PRFileDesc *fd)

Function Documentation

CERTCertificate* SSL_RevealCert ( PRFileDesc fd)

Definition at line 50 of file sslreveal.c.

{
  CERTCertificate * cert = NULL;
  sslSocket * sslsocket = NULL;

  sslsocket = ssl_FindSocket(fd);
  
  /* CERT_DupCertificate increases reference count and returns pointer to 
   * the same cert
   */
  if (sslsocket && sslsocket->sec.peerCert)
    cert = CERT_DupCertificate(sslsocket->sec.peerCert);
  
  return cert;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 69 of file sslreveal.c.

{
  sslSocket * sslsocket = NULL;
  void * PinArg = NULL;
  
  sslsocket = ssl_FindSocket(fd);
  
  /* is pkcs11PinArg part of the sslSocket or sslSecurityInfo ? */
  if (sslsocket)
    PinArg = sslsocket->pkcs11PinArg;
  
  return PinArg;
}

Here is the call graph for this function:

Here is the caller graph for this function:

char* SSL_RevealURL ( PRFileDesc fd)

Definition at line 88 of file sslreveal.c.

{
  sslSocket * sslsocket = NULL;
  char * url = NULL;

  sslsocket = ssl_FindSocket(fd);
  
  if (sslsocket && sslsocket->url)
    url = PL_strdup(sslsocket->url);
  
  return url;
}

Here is the call graph for this function:

Here is the caller graph for this function: