libnetconf  0.10.0-146_trunk
NETCONF Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
URL capability

libnetconf's settings for NETCONF :url capability as defined in RFC 6241. More...

Enumerations

enum  NC_URL_PROTOCOLS {
  NC_URL_UNKNOWN = 0, NC_URL_SCP = 1, NC_URL_HTTP = 2, NC_URL_HTTPS = 4,
  NC_URL_FTP = 8, NC_URL_SFTP = 16, NC_URL_FTPS = 32, NC_URL_FILE = 64,
  NC_URL_ALL = 127
}
 List of protocol IDs supported by URL capability implementation. Values are used to enable/disable server support of these protocols (nc_url_enable(), nc_url_disable()). More...
 

Functions

void nc_url_disable (NC_URL_PROTOCOLS protocol)
 Disable specific protocol for use in URL capability. More...
 
void nc_url_enable (NC_URL_PROTOCOLS protocol)
 Enable specific protocol for use in URL capability. More...
 
void nc_url_set_protocols (int protocols)
 Overwrite enabled protocols for URL capability. More...
 

Detailed Description

libnetconf's settings for NETCONF :url capability as defined in RFC 6241.

Enumeration Type Documentation

List of protocol IDs supported by URL capability implementation. Values are used to enable/disable server support of these protocols (nc_url_enable(), nc_url_disable()).

Enumerator
NC_URL_UNKNOWN 

No protocol.

NC_URL_SCP 

SCP (Secure Copy Protocol).

NC_URL_HTTP 

HTTP (Hypertext Transfer Protocol).

NC_URL_HTTPS 

HTTPS (Hypertext Transfer Protocol Secure).

NC_URL_FTP 

FTP (File Transfer Protocol).

NC_URL_SFTP 

SFTP (SSH File Transfer Protocol)

NC_URL_FTPS 

FTPS (FTP/SSL)

NC_URL_FILE 

local file

NC_URL_ALL 

All supported protocols

Function Documentation

void nc_url_disable ( NC_URL_PROTOCOLS  protocol)

Disable specific protocol for use in URL capability.

Parameters
protocolID of the protocol to disable.
void nc_url_enable ( NC_URL_PROTOCOLS  protocol)

Enable specific protocol for use in URL capability.

Parameters
protocolID of the protocol to enable.
void nc_url_set_protocols ( int  protocols)

Overwrite enabled protocols for URL capability.

Parameters
protocolsbinary array of protocol IDs (ORed NC_URL_PROTOCOLS) to be enabled.