~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/src/sip/tlsvalidation.h

  • Committer: Package Import Robot
  • Author(s): Francois Marier, Francois Marier, Mark Purcell
  • Date: 2014-10-18 15:08:50 UTC
  • mfrom: (1.1.12)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20141018150850-2exfk34ckb15pcwi
Tags: 1.4.1-0.1
[ Francois Marier ]
* Non-maintainer upload
* New upstream release (closes: #759576, #741130)
  - debian/rules +PJPROJECT_VERSION := 2.2.1
  - add upstream patch to fix broken TLS support
  - add patch to fix pjproject regression

[ Mark Purcell ]
* Build-Depends:
  - sflphone-daemon + libavformat-dev, libavcodec-dev, libswscale-dev,
  libavdevice-dev, libavutil-dev
  - sflphone-gnome + libclutter-gtk-1.0-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (C) 2004-2014 Savoir-Faire Linux Inc.
 
3
 *
 
4
 *  Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
 
5
 *          Vittorio Giovara <vittorio.giovara@savoirfairelinux.com>
 
6
 *
 
7
 *  This program is free software; you can redistribute it and/or modify
 
8
 *  it under the terms of the GNU General Public License as published by
 
9
 *  the Free Software Foundation; either version 3 of the License, or
 
10
 *  (at your option) any later version.
 
11
 *
 
12
 *  This program is distributed in the hope that it will be useful,
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *  GNU General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program; if not, write to the Free Software
 
19
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.
 
20
 */
 
21
 
 
22
#ifndef SECURITY_EVALUATOR_H
 
23
#define SECURITY_EVALUATOR_H
 
24
 
 
25
#ifdef __cplusplus
 
26
extern "C" {
 
27
#endif
 
28
 
 
29
#include <stdint.h>
 
30
 
 
31
    /**
 
32
     * Check if the given .pem contains a valid private key.
 
33
     *
 
34
     * @return 0 if success, -1 otherwise
 
35
     */
 
36
    int containsPrivateKey(const char *pemPath);
 
37
 
 
38
    /**
 
39
     * Check if the given .pem contains a valid certificate.
 
40
     *
 
41
     * @return 0 if success, -1 otherwise
 
42
     */
 
43
    int certificateIsValid(const char *caPath,
 
44
                           const char *pemPath);
 
45
 
 
46
    /**
 
47
     * Verify that the local hostname points to a valid SSL server by
 
48
     * establishing a connection to it and by validating its certificate.
 
49
     *
 
50
     * @param host the DNS domain address that the certificate should feature
 
51
     * @return 0 if success, -1 otherwise
 
52
     */
 
53
    int verifyHostnameCertificate(const char *host,
 
54
                                  const uint16_t port);
 
55
 
 
56
#ifdef __cplusplus
 
57
}
 
58
#endif
 
59
 
 
60
#endif