Logo Search packages:      
Sourcecode: fence-agents version File versions  Download package

Defines | Functions

fence_nss_wrapper.c File Reference

#include "clusterautoconfig.h"
#include <stdio.h>
#include <nss.h>
#include <ssl.h>
#include <prio.h>
#include <prnetdb.h>
#include <prerror.h>
#include <prinit.h>
#include <getopt.h>
#include <libgen.h>
Include dependency graph for fence_nss_wrapper.c:

Go to the source code of this file.


#define MODE_DEFAULT   3
#define MODE_IP4MODE   1
#define MODE_IP6MODE   2
#define MODE_NO_SSL   8
#define MODE_RAW   4
#define OPERATION_HELP   1


static void atexit_handler (void)
static void convert_eols (char *in_buffer, int in_size, char *out_buffer, int *out_size, int *in_state)
static PRFileDesc * create_connected_socket (char *hostname, int port, int mode)
static PRFileDesc * create_socket (int ssl, int ipv6)
static int init_nss (void)
int main (int argc, char *argv[])
static SECStatus nss_bad_cert_hook (void *arg, PRFileDesc *fd)
static int parse_cli (int argc, char *argv[], int *operation, int *mode, char **hostname, char **port)
static int poll_cycle (PRFileDesc *localsocket, int mode)
static void print_nspr_error (void)
static int return_port (char *port_s)
static void show_usage (char *pname)

Detailed Description

Definition in file fence_nss_wrapper.c.

Generated by  Doxygen 1.6.0   Back to index