diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-12-25 20:34:14 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-12-25 20:34:14 +0000 |
commit | 2c57eaea78b397d120cfe359ff5d8026dae17f60 (patch) | |
tree | 2cae009a860b5cdddebffc78a005f441f702f5a1 /pjsip/include | |
parent | d6a9dded719756a7a873f1f9a6c1d201859b0ee6 (diff) |
Added TLS support in Makefiles (see ticket #3)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@862 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip/sip_autoconf.h.in | 38 | ||||
-rw-r--r-- | pjsip/include/pjsip/sip_config.h | 8 |
2 files changed, 46 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_autoconf.h.in b/pjsip/include/pjsip/sip_autoconf.h.in new file mode 100644 index 00000000..52915136 --- /dev/null +++ b/pjsip/include/pjsip/sip_autoconf.h.in @@ -0,0 +1,38 @@ +/* $Id$ */ +/* + * Copyright (C) 2003-2006 Benny Prijono <benny@prijono.org> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef __PJSIP_SIP_AUTOCONF_H__ +#define __PJSIP_SIP_AUTOCONF_H__ + +/** + * @file sip_autoconf.h + * @brief Describes operating system specifics (automatically detected by + * autoconf) + */ + +/** + * Enable/disable TLS transport, as configured by autoconf. + * But only do this if user doesn't explicitly configure in pj/config_site.h. + */ +#ifndef PJSIP_HAS_TLS_TRANSPORT +#undef PJSIP_HAS_TLS_TRANSPORT +#endif + + +#endif /* __PJSIP_SIP_AUTOCONF_H__ */ + diff --git a/pjsip/include/pjsip/sip_config.h b/pjsip/include/pjsip/sip_config.h index 6b13ee0a..6cf04e86 100644 --- a/pjsip/include/pjsip/sip_config.h +++ b/pjsip/include/pjsip/sip_config.h @@ -56,6 +56,14 @@ * @{ */ +/* + * Include sip_autoconf.h if autoconf is used (PJ_AUTOCONF is set) + */ +#if defined(PJ_AUTOCONF) +# include <pjsip/sip_autoconf.h> +#endif + + /** * Specify maximum transaction count in transaction hash table. * Default value is 16*1024 |