~ubuntu-branches/ubuntu/utopic/vsftpd/utopic-proposed

« back to all changes in this revision

Viewing changes to privops.h

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-21 14:07:17 UTC
  • mfrom: (2.3.10 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100621140717-fnd7ghb4s1vholau
Tags: 2.3.0~pre2-3ubuntu1
* Merge from debian unstable:
  - Use snakeoil SSL certificates and key.
  - debian/rules, debian/vsftpd.upstart: migrate vsftpd to upstart
  - Add apport hook: (LP: #513978): 
    - debian/vsftpd.apport: Added.
    - debian/control: Build-depends on dh-apport.
    - debian/rules: Add --with apport.
  - Dropped:
    + debian/patches/07_vsftpd-enable-utf8.patch: Add support for UTF8:
      Use the debian version instead.
  - Add debian/watch file 

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 * Return a network socket potentially bound to a privileged port (less than
10
10
 * 1024) and connected to the remote.
11
11
 * PARAMETERS
12
 
 * p_sess       - the current session object
13
 
 * remote_port  - the remote port to connect to
 
12
 * p_sess            - the current session object
 
13
 * remote_port       - the remote port to connect to
 
14
 * use_port_sockaddr - true if we should use the specific sockaddr for connect
14
15
 * RETURNS
15
16
 * A file descriptor which is a socket bound to the privileged port, and
16
17
 * connected to the remote on the specified port.
18
19
 * Returns -1 if the bind() worked but the connect() was not possible.
19
20
 */
20
21
int vsf_privop_get_ftp_port_sock(struct vsf_session* p_sess,
21
 
                                 unsigned short remote_port);
 
22
                                 unsigned short remote_port,
 
23
                                 int use_port_sockaddr);
22
24
 
23
25
/* vsf_privop_pasv_cleanup()
24
26
 * PURPOSE