[asterisk-bugs] [Asterisk 0005413]: [patch] Secure RTP (SRTP)
noreply at bugs.digium.com
noreply at bugs.digium.com
Sat Sep 1 13:01:02 CDT 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=5413
======================================================================
Reported By: mikma
Assigned To: oej
======================================================================
Project: Asterisk
Issue ID: 5413
Category: Core/RTP
Reproducibility: N/A
Severity: feature
Priority: normal
Status: ready for testing
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 48491
Disclaimer on File?: Yes
Request Review:
======================================================================
Date Submitted: 10-09-2005 10:36 CDT
Last Modified: 09-01-2007 13:00 CDT
======================================================================
Summary: [patch] Secure RTP (SRTP)
Description:
This patch adds initial support for secure RTP using libsrt[1]. It can
be used in for example an implementation of the sdecriptions draft[2].
[1] http://srtp.sourceforge.net/srtp.html
[2]
http://www.ietf.org/internet-drafts/draft-ietf-mmusic-sdescriptions-12.txt
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0010129 Module SRTP can't loaded
======================================================================
----------------------------------------------------------------------
cpiga - 09-01-07 13:00
----------------------------------------------------------------------
I had problem in compiling mikey in patched asterisk, on two different
debian etch machines.
make[1]: Entering directory
`/home/cpiga/Asterisk/asterisk-trunk/menuselect'
make[2]: Entering directory
`/home/cpiga/Asterisk/asterisk-trunk/menuselect'
make[2]: `menuselect' is up to date.
make[2]: Leaving directory
`/home/cpiga/Asterisk/asterisk-trunk/menuselect'
make[1]: Leaving directory
`/home/cpiga/Asterisk/asterisk-trunk/menuselect'
menuselect/menuselect --check-deps menuselect.makeopts
Generating embedded module rules ...
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
[CXX] mikey.cc -> mikey.oo
mikey.cc:124: error: 'certificate_chain' was not declared in this scope
mikey.cc:124: error: template argument 1 is invalid
mikey.cc:124: error: invalid type in declaration before ';' token
mikey.cc:125: error: 'ca_db' was not declared in this scope
mikey.cc:125: error: template argument 1 is invalid
mikey.cc:125: error: invalid type in declaration before ';' token
mikey.cc: In constructor 'ast_mikey_config::ast_mikey_config()':
mikey.cc:447: error: invalid conversion from 'int' to 'CertificateChain*'
mikey.cc:447: error: initializing argument 1 of
'MRef<OPType>::MRef(OPType) [with OPType = CertificateChain*]'
mikey.cc:447: error: invalid conversion from 'int' to 'CertificateSet*'
mikey.cc:447: error: initializing argument 1 of
'MRef<OPType>::MRef(OPType) [with OPType = CertificateSet*]'
mikey.cc: In member function 'int ast_mikey_config::add_ca_file(const
char*)':
mikey.cc:466: error: 'ca_db' was not declared in this scope
mikey.cc:466: error: template argument 1 is invalid
mikey.cc:466: error: invalid type in declaration before '=' token
mikey.cc:469: error: 'ca_db' is not a class or namespace
mikey.cc:472: error: invalid conversion from 'int' to 'CertificateSet*'
mikey.cc:472: error: initializing argument 1 of
'MRef<OPType>::MRef(OPType) [with OPType = CertificateSet*]'
mikey.cc:475: error: base operand of '->' is not a pointer
mikey.cc:476: error: base operand of '->' is not a pointer
mikey.cc:477: error: base operand of '->' is not a pointer
mikey.cc:478: error: expected type-specifier before
'certificate_exception'
mikey.cc:478: error: expected `)' before '&' token
mikey.cc:478: error: expected `{' before '&' token
mikey.cc:478: error: 'e' was not declared in this scope
mikey.cc:478: error: expected `;' before ')' token
mikey.cc: In member function 'int ast_mikey_config::add_cert(const char*,
const char*)':
mikey.cc:492: error: 'certificate_chain' was not declared in this scope
mikey.cc:492: error: template argument 1 is invalid
mikey.cc:492: error: invalid type in declaration before '=' token
mikey.cc:495: error: 'certificate_chain' is not a class or namespace
mikey.cc:498: error: invalid conversion from 'int' to 'CertificateChain*'
mikey.cc:498: error: initializing argument 1 of
'MRef<OPType>::MRef(OPType) [with OPType = CertificateChain*]'
mikey.cc:501: error: incomplete type 'certificate' used in nested name
specifier
mikey.cc:502: error: base operand of '->' is not a pointer
mikey.cc:503: error: base operand of '->' is not a pointer
mikey.cc:504: error: base operand of '->' is not a pointer
mikey.cc:505: error: expected type-specifier before
'certificate_exception'
mikey.cc:505: error: expected `)' before '&' token
mikey.cc:505: error: expected `{' before '&' token
mikey.cc:505: error: 'e' was not declared in this scope
mikey.cc:505: error: expected `;' before ')' token
mikey.cc: In function 'int mikey_init()':
mikey.cc:770: error: 'ca_db' has not been declared
mikey.cc:771: error: 'certificate_chain' has not been declared
mikey.cc: In function 'void mikey_uninit()':
mikey.cc:793: warning: converting to non-pointer type 'int' from NULL
mikey.cc:794: warning: converting to non-pointer type 'int' from NULL
mikey.cc: In function 'int mikey_add_global_ca_file(const char*)':
mikey.cc:805: error: base operand of '->' is not a pointer
mikey.cc:806: error: base operand of '->' is not a pointer
mikey.cc:807: error: base operand of '->' is not a pointer
mikey.cc:808: error: expected type-specifier before
'certificate_exception'
mikey.cc:808: error: expected `)' before '&' token
mikey.cc:808: error: expected `{' before '&' token
mikey.cc:808: error: 'e' was not declared in this scope
mikey.cc:808: error: expected `;' before ')' token
mikey.cc: In function 'int mikey_add_global_cert_file(const char*, const
char*)':
mikey.cc:822: error: incomplete type 'certificate' used in nested name
specifier
mikey.cc:823: error: base operand of '->' is not a pointer
mikey.cc:824: error: base operand of '->' is not a pointer
mikey.cc:825: error: base operand of '->' is not a pointer
mikey.cc:826: error: expected type-specifier before
'certificate_exception'
mikey.cc:826: error: expected `)' before '&' token
mikey.cc:826: error: expected `{' before '&' token
mikey.cc:826: error: 'e' was not declared in this scope
mikey.cc:826: error: expected `;' before ')' token
/usr/include/libmutil/MemObject.h: In member function 'bool
MRef<OPType>::decrease() [with OPType = certificate*]':
/usr/include/libmutil/MemObject.h:366: instantiated from
'MRef<OPType>::~MRef() [with OPType = certificate*]'
mikey.cc:501: instantiated from here
/usr/include/libmutil/MemObject.h:335: error: invalid use of undefined
type 'struct certificate'
/usr/include/libmikey/KeyAgreementDH.h:40: error: forward declaration of
'struct certificate'
/usr/include/libmutil/MemObject.h:366: instantiated from
'MRef<OPType>::~MRef() [with OPType = certificate*]'
mikey.cc:501: instantiated from here
/usr/include/libmutil/MemObject.h:344: warning: possible problem detected
in invocation of delete operator:
/usr/include/libmutil/MemObject.h:344: warning: invalid use of undefined
type 'struct certificate'
/usr/include/libmikey/KeyAgreementDH.h:40: warning: forward declaration of
'struct certificate'
/usr/include/libmutil/MemObject.h:344: note: neither the destructor nor
the class-specific operator delete will be called, even if they are
declared when the class is defined.
/usr/include/libmutil/MemObject.h: In member function 'void
MRef<OPType>::setPointer(OPType) [with OPType = certificate*]':
/usr/include/libmutil/MemObject.h:367: instantiated from
'MRef<OPType>::~MRef() [with OPType = certificate*]'
mikey.cc:501: instantiated from here
/usr/include/libmutil/MemObject.h:300: error: cannot dynamic_cast 'o' (of
type 'struct certificate* const') to type 'struct certificate*' (target is
not pointer or reference to complete type)
mikey.cc: At global scope:
mikey.cc:183: warning: 'int message_to_base64(MRef<MikeyMessage*>, char*,
size_t)' defined but not used
mikey.cc:208: warning: 'void dump_hex(unsigned char*, size_t)' defined but
not used
make[1]: *** [mikey.oo] Error 1
make: *** [res] Error 2
Issue History
Date Modified Username Field Change
======================================================================
09-01-07 13:00 cpiga Note Added: 0069818
======================================================================
More information about the asterisk-bugs
mailing list