Remove as much trailing whitespace as possible.
authorSean Bright <sean.bright@gmail.com>
Fri, 22 Dec 2017 14:23:22 +0000 (09:23 -0500)
committerSean Bright <sean.bright@gmail.com>
Fri, 22 Dec 2017 14:23:22 +0000 (09:23 -0500)
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0

700 files changed:
Makefile
Makefile.moddir_rules
Makefile.rules
UPGRADE-1.2.txt
UPGRADE-1.4.txt
UPGRADE-1.6.txt
UPGRADE-1.8.txt
UPGRADE-10.txt
UPGRADE-11.txt
UPGRADE-12.txt
addons/app_mysql.c
addons/cdr_mysql.c
addons/chan_mobile.c
addons/chan_ooh323.c
addons/chan_ooh323.h
addons/format_mp3.c
addons/ooh323c/README
addons/ooh323c/src/Makefile.in
addons/ooh323c/src/context.c
addons/ooh323c/src/decode.c
addons/ooh323c/src/dlist.c
addons/ooh323c/src/dlist.h
addons/ooh323c/src/encode.c
addons/ooh323c/src/errmgmt.c
addons/ooh323c/src/eventHandler.c
addons/ooh323c/src/eventHandler.h
addons/ooh323c/src/h323/H235-SECURITY-MESSAGES.h
addons/ooh323c/src/h323/H235-SECURITY-MESSAGESDec.c
addons/ooh323c/src/h323/H235-SECURITY-MESSAGESEnc.c
addons/ooh323c/src/h323/H323-MESSAGES.c
addons/ooh323c/src/h323/H323-MESSAGES.h
addons/ooh323c/src/h323/H323-MESSAGESDec.c
addons/ooh323c/src/h323/H323-MESSAGESEnc.c
addons/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROL.c
addons/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROL.h
addons/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLDec.c
addons/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLEnc.c
addons/ooh323c/src/memheap.c
addons/ooh323c/src/memheap.h
addons/ooh323c/src/ooCalls.c
addons/ooh323c/src/ooCalls.h
addons/ooh323c/src/ooCapability.c
addons/ooh323c/src/ooCapability.h
addons/ooh323c/src/ooCmdChannel.c
addons/ooh323c/src/ooCmdChannel.h
addons/ooh323c/src/ooCommon.h
addons/ooh323c/src/ooDateTime.c
addons/ooh323c/src/ooDateTime.h
addons/ooh323c/src/ooGkClient.c
addons/ooh323c/src/ooGkClient.h
addons/ooh323c/src/ooLogChan.c
addons/ooh323c/src/ooLogChan.h
addons/ooh323c/src/ooSocket.c
addons/ooh323c/src/ooSocket.h
addons/ooh323c/src/ooStackCmds.c
addons/ooh323c/src/ooStackCmds.h
addons/ooh323c/src/ooTimer.c
addons/ooh323c/src/ooTimer.h
addons/ooh323c/src/ooUtils.c
addons/ooh323c/src/ooUtils.h
addons/ooh323c/src/ooasn1.h
addons/ooh323c/src/oochannels.c
addons/ooh323c/src/oochannels.h
addons/ooh323c/src/ooh245.c
addons/ooh323c/src/ooh245.h
addons/ooh323c/src/ooh323.c
addons/ooh323c/src/ooh323.h
addons/ooh323c/src/ooh323ep.c
addons/ooh323c/src/ooh323ep.h
addons/ooh323c/src/oohdr.h
addons/ooh323c/src/ooper.h
addons/ooh323c/src/ooports.c
addons/ooh323c/src/ooports.h
addons/ooh323c/src/ooq931.c
addons/ooh323c/src/ooq931.h
addons/ooh323c/src/ootrace.c
addons/ooh323c/src/ootrace.h
addons/ooh323c/src/ootypes.h
addons/ooh323c/src/perutil.c
addons/ooh323c/src/printHandler.c
addons/ooh323c/src/printHandler.h
addons/ooh323c/src/rtctype.c
addons/ooh323c/src/rtctype.h
addons/ooh323cDriver.c
addons/ooh323cDriver.h
addons/res_config_mysql.c
agi/Makefile
agi/eagi-sphinx-test.c
agi/eagi-test.c
agi/jukebox.agi
apps/Makefile
apps/app_adsiprog.c
apps/app_amd.c
apps/app_authenticate.c
apps/app_chanisavail.c
apps/app_chanspy.c
apps/app_controlplayback.c
apps/app_dahdiras.c
apps/app_dial.c
apps/app_dictate.c
apps/app_directory.c
apps/app_echo.c
apps/app_externalivr.c
apps/app_fax.c
apps/app_festival.c
apps/app_flash.c
apps/app_followme.c
apps/app_forkcdr.c
apps/app_getcpeid.c
apps/app_ices.c
apps/app_image.c
apps/app_ivrdemo.c
apps/app_jack.c
apps/app_macro.c
apps/app_meetme.c
apps/app_milliwatt.c
apps/app_minivm.c
apps/app_morsecode.c
apps/app_mp3.c
apps/app_nbscat.c
apps/app_page.c
apps/app_playback.c
apps/app_queue.c
apps/app_read.c
apps/app_readexten.c
apps/app_record.c
apps/app_saycounted.c
apps/app_sayunixtime.c
apps/app_senddtmf.c
apps/app_sendtext.c
apps/app_setcallerid.c
apps/app_skel.c
apps/app_sms.c
apps/app_softhangup.c
apps/app_speech_utils.c
apps/app_stack.c
apps/app_statsd.c
apps/app_system.c
apps/app_talkdetect.c
apps/app_test.c
apps/app_transfer.c
apps/app_url.c
apps/app_userevent.c
apps/app_voicemail.c
apps/app_waitforring.c
apps/app_while.c
apps/app_zapateller.c
apps/enter.h
apps/leave.h
autoconf/ast_c_compile_check.m4
autoconf/ast_c_declare_check.m4
autoconf/ast_c_define_check.m4
autoconf/ast_check_osptk.m4
autoconf/ast_check_pwlib.m4
autoconf/ast_pkgconfig.m4
bridges/Makefile
bridges/bridge_holding.c
build_tools/make_buildopts_h
build_tools/make_defaults_h
build_tools/make_sample_voicemail
build_tools/make_version
build_tools/sha1sum-sh
cdr/cdr_adaptive_odbc.c
cdr/cdr_beanstalkd.c
cdr/cdr_custom.c
cdr/cdr_radius.c
cel/Makefile
cel/cel_custom.c
cel/cel_odbc.c
channels/Makefile
channels/chan_alsa.c
channels/chan_console.c
channels/chan_iax2.c
channels/chan_motif.c
channels/chan_nbs.c
channels/chan_oss.c
channels/chan_phone.c
channels/chan_phone.h
channels/chan_pjsip.c
channels/chan_unistim.c
channels/chan_vpb.cc
channels/console_board.c
channels/console_gui.c
channels/console_video.c
channels/console_video.h
channels/iax2/include/iax2.h
channels/iax2/include/parser.h
channels/iax2/parser.c
channels/iax2/provision.c
channels/misdn/ie.c
channels/misdn/isdn_lib.c
channels/sig_analog.h
channels/sip/config_parser.c
channels/sip/dialplan_functions.c
channels/sip/include/config_parser.h
channels/sip/include/globals.h
channels/sip/include/reqresp_parser.h
channels/sip/security_events.c
channels/vcodecs.c
channels/vgrabbers.c
codecs/Makefile
codecs/codec_adpcm.c
codecs/codec_alaw.c
codecs/codec_g722.c
codecs/codec_g726.c
codecs/codec_gsm.c
codecs/codec_lpc10.c
codecs/codec_resample.c
codecs/codec_speex.c
codecs/codec_ulaw.c
codecs/ex_ilbc.h
codecs/g722/g722.h
codecs/g722/g722_decode.c
codecs/g722/g722_encode.c
codecs/gsm/Makefile
codecs/gsm/README
codecs/gsm/inc/gsm.h
codecs/gsm/inc/private.h
codecs/gsm/inc/proto.h
codecs/gsm/src/add.c
codecs/gsm/src/code.c
codecs/gsm/src/debug.c
codecs/gsm/src/gsm_decode.c
codecs/gsm/src/gsm_explode.c
codecs/gsm/src/gsm_implode.c
codecs/gsm/src/gsm_option.c
codecs/gsm/src/k6opt.h
codecs/gsm/src/long_term.c
codecs/gsm/src/lpc.c
codecs/gsm/src/preprocess.c
codecs/gsm/src/rpe.c
codecs/gsm/src/short_term.c
codecs/gsm/src/table.c
codecs/ilbc/FrameClassify.c
codecs/ilbc/FrameClassify.h
codecs/ilbc/LPCdecode.c
codecs/ilbc/LPCdecode.h
codecs/ilbc/LPCencode.c
codecs/ilbc/LPCencode.h
codecs/ilbc/StateConstructW.c
codecs/ilbc/StateConstructW.h
codecs/ilbc/StateSearchW.c
codecs/ilbc/StateSearchW.h
codecs/ilbc/anaFilter.c
codecs/ilbc/anaFilter.h
codecs/ilbc/constants.c
codecs/ilbc/constants.h
codecs/ilbc/createCB.c
codecs/ilbc/createCB.h
codecs/ilbc/doCPLC.c
codecs/ilbc/doCPLC.h
codecs/ilbc/enhancer.c
codecs/ilbc/enhancer.h
codecs/ilbc/extract-cfile.awk
codecs/ilbc/filter.c
codecs/ilbc/filter.h
codecs/ilbc/gainquant.c
codecs/ilbc/gainquant.h
codecs/ilbc/getCBvec.c
codecs/ilbc/getCBvec.h
codecs/ilbc/helpfun.c
codecs/ilbc/helpfun.h
codecs/ilbc/hpInput.c
codecs/ilbc/hpInput.h
codecs/ilbc/hpOutput.c
codecs/ilbc/hpOutput.h
codecs/ilbc/iCBConstruct.c
codecs/ilbc/iCBConstruct.h
codecs/ilbc/iCBSearch.c
codecs/ilbc/iCBSearch.h
codecs/ilbc/iLBC_decode.c
codecs/ilbc/iLBC_decode.h
codecs/ilbc/iLBC_define.h
codecs/ilbc/iLBC_encode.c
codecs/ilbc/iLBC_encode.h
codecs/ilbc/iLBC_test.c
codecs/ilbc/lsf.c
codecs/ilbc/lsf.h
codecs/ilbc/packing.c
codecs/ilbc/packing.h
codecs/ilbc/rfc3951.txt
codecs/ilbc/syntFilter.c
codecs/ilbc/syntFilter.h
codecs/log2comp.h
codecs/lpc10/Makefile
codecs/lpc10/analys.c
codecs/lpc10/bsynz.c
codecs/lpc10/chanwr.c
codecs/lpc10/dcbias.c
codecs/lpc10/decode.c
codecs/lpc10/difmag.c
codecs/lpc10/dyptrk.c
codecs/lpc10/encode.c
codecs/lpc10/energy.c
codecs/lpc10/f2c.h
codecs/lpc10/ham84.c
codecs/lpc10/invert.c
codecs/lpc10/irc2pc.c
codecs/lpc10/ivfilt.c
codecs/lpc10/lpc10.h
codecs/lpc10/lpcdec.c
codecs/lpc10/lpcenc.c
codecs/lpc10/lpcini.c
codecs/lpc10/lpfilt.c
codecs/lpc10/median.c
codecs/lpc10/mload.c
codecs/lpc10/onset.c
codecs/lpc10/pitsyn.c
codecs/lpc10/placea.c
codecs/lpc10/placev.c
codecs/lpc10/preemp.c
codecs/lpc10/random.c
codecs/lpc10/rcchk.c
codecs/lpc10/synths.c
codecs/lpc10/tbdm.c
codecs/lpc10/voicin.c
codecs/lpc10/vparms.c
codecs/speex/arch.h
codecs/speex/fixed_generic.h
codecs/speex/resample.c
codecs/speex/resample_sse.h
codecs/speex/speex_resampler.h
codecs/speex/stack_alloc.h
configs/basic-pbx/indications.conf
configs/basic-pbx/pjsip.conf
configs/samples/alsa.conf.sample
configs/samples/ari.conf.sample
configs/samples/asterisk.adsi
configs/samples/asterisk.conf.sample
configs/samples/calendar.conf.sample
configs/samples/cdr_adaptive_odbc.conf.sample
configs/samples/cdr_beanstalkd.conf.sample
configs/samples/cdr_mysql.conf.sample
configs/samples/cdr_tds.conf.sample
configs/samples/cel.conf.sample
configs/samples/chan_dahdi.conf.sample
configs/samples/chan_mobile.conf.sample
configs/samples/codecs.conf.sample
configs/samples/dbsep.conf.sample
configs/samples/dsp.conf.sample
configs/samples/extconfig.conf.sample
configs/samples/extensions.lua.sample
configs/samples/extensions_minivm.conf.sample
configs/samples/festival.conf.sample
configs/samples/followme.conf.sample
configs/samples/func_odbc.conf.sample
configs/samples/iaxprov.conf.sample
configs/samples/manager.conf.sample
configs/samples/mgcp.conf.sample
configs/samples/ooh323.conf.sample
configs/samples/oss.conf.sample
configs/samples/phoneprov.conf.sample
configs/samples/queuerules.conf.sample
configs/samples/queues.conf.sample
configs/samples/res_config_mysql.conf.sample
configs/samples/res_fax.conf.sample
configs/samples/res_ldap.conf.sample
configs/samples/res_pgsql.conf.sample
configs/samples/res_snmp.conf.sample
configs/samples/resolver_unbound.conf.sample
configs/samples/say.conf.sample
configs/samples/sip.conf.sample
configs/samples/skinny.conf.sample
configs/samples/sla.conf.sample
configs/samples/users.conf.sample
configs/samples/voicemail.conf.sample
configs/samples/xmpp.conf.sample
contrib/README.festival
contrib/ast-db-manage/cdr/versions/210693f3123d_create_cdr_table.py
contrib/ast-db-manage/config/versions/1758e8bbf6b_increase_useragent_column_size.py
contrib/ast-db-manage/config/versions/28887f25a46f_create_queue_tables.py
contrib/ast-db-manage/config/versions/4a6c67fa9b7a_add_fax_detect_timeout_option.py
contrib/ast-db-manage/config/versions/837aa67461fb_ps_contacts_add_authenticate_qualify.py
contrib/ast-db-manage/config/versions/a6ef36f1309_ps_globals_add_ignore_uri_user_options.py
contrib/ast-db-manage/config/versions/d39508cb8d8_create_queue_rules.py
contrib/ast-db-manage/env.py
contrib/ast-db-manage/voicemail/versions/39428242f7f5_increase_recording_column_size.py
contrib/asterisk-ices.xml
contrib/init.d/rc.debian.asterisk
contrib/init.d/rc.mandriva.asterisk
contrib/init.d/rc.mandriva.zaptel
contrib/init.d/rc.redhat.asterisk
contrib/init.d/rc.slackware.asterisk
contrib/init.d/rc.suse.asterisk
contrib/scripts/README.messages-expire
contrib/scripts/ast_tls_cert
contrib/scripts/astcli
contrib/scripts/astgenkey.8
contrib/scripts/autosupport
contrib/scripts/autosupport.8
contrib/scripts/dbsep.cgi
contrib/scripts/managerproxy.pl
contrib/scripts/messages-expire.pl
contrib/scripts/retrieve_extensions_from_mysql.pl
contrib/scripts/retrieve_extensions_from_sql.pl
contrib/scripts/retrieve_sip_conf_from_mysql.pl
contrib/scripts/safe_asterisk.8
contrib/scripts/sip_nat_settings
contrib/upstart/asterisk.user.conf
contrib/utils/README.rawplayer
contrib/utils/eagi_proxy.c
contrib/utils/rawplayer.c
contrib/utils/zones2indications.c
doc/Makefile
doc/README.txt
doc/astdb2bdb.8
doc/astdb2sqlite3.8
doc/asterisk.8
doc/asterisk.sgml
doc/lang/language-criteria.txt
formats/Makefile
formats/format_g719.c
formats/format_g723.c
formats/format_g726.c
formats/format_g729.c
formats/format_gsm.c
formats/format_h263.c
formats/format_h264.c
formats/format_ilbc.c
formats/format_jpeg.c
formats/format_ogg_vorbis.c
formats/format_pcm.c
formats/format_siren14.c
formats/format_siren7.c
formats/format_sln.c
formats/format_vox.c
formats/format_wav.c
formats/format_wav_gsm.c
formats/msgsm.h
funcs/Makefile
funcs/func_audiohookinherit.c
funcs/func_base64.c
funcs/func_blacklist.c
funcs/func_config.c
funcs/func_curl.c
funcs/func_cut.c
funcs/func_db.c
funcs/func_devstate.c
funcs/func_dialplan.c
funcs/func_enum.c
funcs/func_extstate.c
funcs/func_frame_trace.c
funcs/func_global.c
funcs/func_groupcount.c
funcs/func_iconv.c
funcs/func_jitterbuffer.c
funcs/func_lock.c
funcs/func_logic.c
funcs/func_md5.c
funcs/func_odbc.c
funcs/func_pitchshift.c
funcs/func_presencestate.c
funcs/func_rand.c
funcs/func_sha1.c
funcs/func_sorcery.c
funcs/func_speex.c
funcs/func_sprintf.c
funcs/func_srv.c
funcs/func_strings.c
funcs/func_sysinfo.c
funcs/func_timeout.c
funcs/func_uri.c
funcs/func_version.c
funcs/func_vmcount.c
funcs/func_volume.c
include/asterisk/abstract_jb.h
include/asterisk/adsi.h
include/asterisk/ael_structs.h
include/asterisk/agi.h
include/asterisk/ast_expr.h
include/asterisk/astobj.h
include/asterisk/astosp.h
include/asterisk/autochan.h
include/asterisk/calendar.h
include/asterisk/ccss.h
include/asterisk/cel.h
include/asterisk/cli.h
include/asterisk/compat.h
include/asterisk/config.h
include/asterisk/config_options.h
include/asterisk/core_unreal.h
include/asterisk/doxygen/architecture.h
include/asterisk/doxygen/licensing.h
include/asterisk/doxyref.h
include/asterisk/dundi.h
include/asterisk/endian.h
include/asterisk/event_defs.h
include/asterisk/file.h
include/asterisk/format.h
include/asterisk/framehook.h
include/asterisk/fskmodem.h
include/asterisk/fskmodem_int.h
include/asterisk/image.h
include/asterisk/indications.h
include/asterisk/io.h
include/asterisk/manager.h
include/asterisk/message.h
include/asterisk/mod_format.h
include/asterisk/module.h
include/asterisk/netsock2.h
include/asterisk/paths.h
include/asterisk/pbx.h
include/asterisk/pktccops.h
include/asterisk/presencestate.h
include/asterisk/pval.h
include/asterisk/res_fax.h
include/asterisk/res_odbc.h
include/asterisk/res_pjsip_session.h
include/asterisk/sched.h
include/asterisk/select.h
include/asterisk/smdi.h
include/asterisk/speech.h
include/asterisk/srv.h
include/asterisk/statsd.h
include/asterisk/stringfields.h
include/asterisk/strings.h
include/asterisk/tcptls.h
include/asterisk/tdd.h
include/asterisk/threadstorage.h
include/asterisk/timing.h
include/asterisk/translate.h
include/asterisk/udptl.h
include/asterisk/xml.h
include/jitterbuf.h
include/solaris-compat/sys/queue.h
install-sh
main/acl.c
main/alaw.c
main/app.c
main/ast_expr2.c
main/ast_expr2.h
main/ast_expr2.y
main/ast_expr2f.c
main/astfd.c
main/astobj2_container.c
main/astobj2_hash.c
main/astobj2_rbtree.c
main/bridge_basic.c
main/ccss.c
main/db.c
main/dns.c
main/editline/INSTALL
main/editline/chared.c
main/editline/configure
main/editline/configure.in
main/editline/install-sh
main/editline/np/unvis.c
main/editline/np/vis.c
main/editline/read.h
main/editline/readline.c
main/editline/refresh.c
main/editline/term.c
main/format_cache.c
main/format_compatibility.c
main/fskmodem.c
main/indications.c
main/manager_channels.c
main/manager_endpoints.c
main/media_index.c
main/pbx.c
main/pbx_sw.c
main/plc.c
main/poll.c
main/rtp_engine.c
main/say.c
main/sdp_srtp.c
main/sdp_state.c
main/security_events.c
main/smoother.c
main/stasis.c
main/stasis_cache.c
main/stasis_cache_pattern.c
main/stdtime/localtime.c
main/tdd.c
main/threadpool.c
main/threadstorage.c
main/ulaw.c
main/xml.c
main/xmldoc.c
menuselect/Makefile
menuselect/README
menuselect/autoconfig.h.in
menuselect/contrib/Makefile-dummy
menuselect/contrib/menuselect-dummy
menuselect/linkedlists.h
menuselect/make_version
menuselect/makeopts.in
menuselect/menuselect_curses.c
menuselect/menuselect_gtk.c
menuselect/menuselect_stub.c
menuselect/strcompat.c
pbx/Makefile
pbx/ael/ael-test/ael-ntest12/extensions.ael
pbx/ael/ael-test/ael-ntest22/extensions.ael
pbx/ael/ael-test/ael-ntest22/t2/f.ael
pbx/ael/ael-test/ael-ntest23/t2/f.ael
pbx/ael/ael-test/ael-ntest24/extensions.ael
pbx/ael/ael-test/ael-ntest9/extensions.ael
pbx/ael/ael-test/ael-test1/extensions.ael
pbx/ael/ael-test/ael-test11/extensions.ael
pbx/ael/ael-test/ael-test16/extensions.ael
pbx/ael/ael-test/ael-test18/extensions.ael
pbx/ael/ael-test/ael-test19/extensions.ael
pbx/ael/ael-test/ael-test2/extensions.ael
pbx/ael/ael-test/ael-test20/extensions.ael
pbx/ael/ael-test/ael-test3/extensions.ael
pbx/ael/ael-test/ael-test3/telemarket_torture.ael2
pbx/ael/ael-test/ael-test4/extensions.ael
pbx/ael/ael-test/ael-test7/extensions.ael
pbx/ael/ael-test/ael-test8/extensions.ael
pbx/ael/ael-test/ael-vtest13/extensions.ael
pbx/ael/ael-test/ael-vtest13/telemarket_torture.ael2
pbx/ael/ael-test/ael-vtest17/extensions.ael
pbx/ael/ael-test/ael-vtest21/extensions.ael
pbx/ael/ael-test/runtests
pbx/dundi-parser.c
pbx/pbx_ael.c
pbx/pbx_config.c
pbx/pbx_dundi.c
pbx/pbx_lua.c
pbx/pbx_realtime.c
pbx/pbx_spool.c
res/Makefile
res/ael/ael.flex
res/ael/ael.tab.c
res/ael/ael.tab.h
res/ael/ael.y
res/ael/ael_lex.c
res/ael/pval.c
res/ari/ari_model_validators.h
res/ari/resource_events.c
res/res_ael_share.c
res/res_calendar.c
res/res_calendar_caldav.c
res/res_calendar_icalendar.c
res/res_clialiases.c
res/res_config_curl.c
res/res_config_ldap.c
res/res_config_odbc.c
res/res_config_sqlite.c
res/res_config_sqlite3.c
res/res_convert.c
res/res_corosync.c
res/res_curl.c
res/res_fax_spandsp.c
res/res_format_attr_silk.c
res/res_http_post.c
res/res_limit.c
res/res_monitor.c
res/res_musiconhold.c
res/res_mwi_external_ami.c
res/res_odbc.c
res/res_phoneprov.c
res/res_pjsip/location.c
res/res_pjsip/pjsip_global_headers.c
res/res_pjsip/pjsip_options.c
res/res_pjsip/pjsip_session.c
res/res_pjsip_pubsub.c
res/res_pktccops.c
res/res_realtime.c
res/res_rtp_multicast.c
res/res_smdi.c
res/res_snmp.c
res/res_sorcery_realtime.c
res/res_srtp.c
res/res_timing_dahdi.c
res/res_timing_pthread.c
res/snmp/agent.c
res/stasis/app.c
rest-api-templates/ari_model_validators.h.mustache
sample.call
sounds/Makefile
static-http/ajamdemo.html
static-http/astman.css
static-http/astman.js
static-http/mantest.html
tests/Makefile
tests/test_acl.c
tests/test_ami_security_events.sh
tests/test_config.c
tests/test_dlinklists.c
tests/test_locale.c
tests/test_skel.c
tests/test_substitution.c
third-party/Makefile
third-party/configure.m4
third-party/pjproject/apply_patches
third-party/pjproject/patches/asterisk_malloc_debug.c
utils/Makefile
utils/astcanary.c
utils/astman.1
utils/conf2ael.c
utils/db1-ast/hash/README
utils/db1-ast/hash/hash_page.c
utils/db1-ast/include/db.h
utils/db1-ast/recno/rec_search.c
utils/db1-ast/recno/rec_seq.c
utils/extconf.c
utils/frame.c
utils/stereorize.c

index e37dd90..afd50c3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1113,4 +1113,3 @@ FORCE:
 
 # This only stops targets within the root Makefile from building in parallel.
 .NOTPARALLEL:
-
index 59190be..917c8e0 100644 (file)
@@ -38,7 +38,7 @@ ifneq ($(MODULE_PREFIX),)
     ALL_C_MODS+=$(foreach p,$(MODULE_PREFIX),$(patsubst %.c,%,$(wildcard $(p)_*.c)))
     ALL_CC_MODS+=$(foreach p,$(MODULE_PREFIX),$(patsubst %.cc,%,$(wildcard $(p)_*.cc)))
 endif
+
 C_MODS:=$(filter-out $(MENUSELECT_$(MENUSELECT_CATEGORY)),$(ALL_C_MODS))
 CC_MODS:=$(filter-out $(MENUSELECT_$(MENUSELECT_CATEGORY)),$(ALL_CC_MODS))
 
index ee8eabd..2273644 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Asterisk -- An open source telephony toolkit.
-# 
+#
 # Makefile rules
 #
 # Copyright (C) 2006-2010, Digium, Inc.
@@ -55,7 +55,7 @@ ifeq ($(NOISY_BUILD),)
     ECHO_PREFIX=@
     CMD_PREFIX=@
 else
-    ECHO_PREFIX=@\# 
+    ECHO_PREFIX=@\#
     CMD_PREFIX=
 endif
 
index cd647c4..cfbff94 100644 (file)
@@ -37,9 +37,9 @@ Dialplan Expressions:
 
 Agents:
 
-* The default for ackcall has been changed to "no" instead of "yes" 
+* The default for ackcall has been changed to "no" instead of "yes"
   because of a bug which caused the "yes" behavior to generally act like
-  "no".  You may need to adjust the value if your agents behave 
+  "no".  You may need to adjust the value if your agents behave
   differently than you expect with respect to acknowledgement.
 
 * The AgentCallBackLogin application now requires a second '|' before
@@ -56,16 +56,16 @@ Parking:
 
 Dialing:
 
-* The Caller*ID of the outbound leg is now the extension that was 
-  called, rather than the Caller*ID of the inbound leg of the call.  The 
-  "o" flag for Dial can be used to restore the original behavior if 
+* The Caller*ID of the outbound leg is now the extension that was
+  called, rather than the Caller*ID of the inbound leg of the call.  The
+  "o" flag for Dial can be used to restore the original behavior if
   desired.  Note that if you are looking for the originating callerid
-  from the manager event, there is a new manager event "Dial" which 
+  from the manager event, there is a new manager event "Dial" which
   provides the source and destination channels and callerid.
 
-IAX: 
+IAX:
 
-* The naming convention for IAX channels has changed in two ways: 
+* The naming convention for IAX channels has changed in two ways:
    1. The call number follows a "-" rather than a "/" character.
    2. The name of the channel has been simplified to IAX2/peer-callno,
    rather than IAX2/peer@peer-callno or even IAX2/peer@peer/callno.
@@ -77,7 +77,7 @@ SIP:
   the other channel drivers and to avoid confusion with the "port"
   option for users/peers.
 
-* The "Registry" event now uses "Username" rather than "User" for 
+* The "Registry" event now uses "Username" rather than "User" for
   consistency with IAX.
 
 Applications:
@@ -85,7 +85,7 @@ Applications:
 * With the addition of dialplan functions (which operate similarly
   to variables), the SetVar application has been renamed to Set.
 
-* The CallerPres application has been removed.  Use SetCallerPres 
+* The CallerPres application has been removed.  Use SetCallerPres
   instead.  It accepts both numeric and symbolic names.
 
 * The applications GetGroupCount, GetGroupMatchCount, SetGroup, and
@@ -145,7 +145,7 @@ Applications:
   moved to option 5.
 
 * The application VoiceMailMain now only matches the 'default' context if
-  none is specified in the arguments.  (This was the previously 
+  none is specified in the arguments.  (This was the previously
   documented behavior, however, we didn't follow that behavior.)  The old
   behavior can be restored by setting searchcontexts=yes in voicemail.conf.
 
@@ -153,7 +153,7 @@ Queues:
 
 * A queue is now considered empty not only if there are no members but if
   none of the members are available (e.g. agents not logged on).  To
-  restore the original behavior, use "leavewhenempty=strict" or 
+  restore the original behavior, use "leavewhenempty=strict" or
   "joinwhenempty=strict" instead of "=yes" for those options.
 
 * It is now possible to use multi-digit extensions in the exit context
@@ -165,8 +165,8 @@ Queues:
 Extensions:
 
 * By default, there is a new option called "autofallthrough" in
-  extensions.conf that is set to yes.  Asterisk 1.0 (and earlier) 
-  behavior was to wait for an extension to be dialed after there were no 
+  extensions.conf that is set to yes.  Asterisk 1.0 (and earlier)
+  behavior was to wait for an extension to be dialed after there were no
   more extensions to execute.  "autofallthrough" changes this behavior
   so that the call will immediately be terminated with BUSY,
   CONGESTION, or HANGUP based on Asterisk's best guess.  If you are
@@ -175,9 +175,9 @@ Extensions:
 
 AGI:
 
-* AGI scripts did not always get SIGHUP at the end, previously.  That 
-  behavior has been fixed.  If you do not want your script to terminate 
-  at the end of AGI being called (e.g. on a hangup) then set SIGHUP to 
+* AGI scripts did not always get SIGHUP at the end, previously.  That
+  behavior has been fixed.  If you do not want your script to terminate
+  at the end of AGI being called (e.g. on a hangup) then set SIGHUP to
   be ignored within your application.
 
 * CallerID is reported with agi_callerid and agi_calleridname instead
@@ -199,13 +199,13 @@ chan_modem:
 MeetMe:
 
 * The conference application now allows users to increase/decrease their
-  speaking volume and listening volume (independently of each other and 
-  other users); the 'admin' and 'user' menus have changed, and new sound 
-  files are included with this release. However, if a user calling in 
-  over a Zaptel channel that does NOT have hardware DTMF detection 
-  increases their speaking volume, it is likely they will no longer be 
-  able to enter/exit the menu or make any further adjustments, as the  
-  software DTMF detector will not be able to recognize the DTMF coming 
+  speaking volume and listening volume (independently of each other and
+  other users); the 'admin' and 'user' menus have changed, and new sound
+  files are included with this release. However, if a user calling in
+  over a Zaptel channel that does NOT have hardware DTMF detection
+  increases their speaking volume, it is likely they will no longer be
+  able to enter/exit the menu or make any further adjustments, as the
+  software DTMF detector will not be able to recognize the DTMF coming
   from their device.
 
 GetVar Manager Action:
index f99f937..74cb1e5 100644 (file)
@@ -34,7 +34,7 @@ users, that will result in a similar build to what they would have had before
 the configure script was added to the build process (except for having to run
 'make' again after the configure script is run). Note that the configure script
 does NOT need to be re-run just to rebuild Asterisk; you only need to re-run it
-when your system configuration changes or you wish to build Asterisk with 
+when your system configuration changes or you wish to build Asterisk with
 different options.
 
 Build Process (module selection):
@@ -42,7 +42,7 @@ Build Process (module selection):
 The Asterisk source tree now includes a basic module selection and build option
 selection tool called 'menuselect'. Run 'make menuselect' to make your choices.
 In this tool, you can disable building of modules that you don't care about,
-turn on/off global options for the build and see which modules will not 
+turn on/off global options for the build and see which modules will not
 (and cannot) be built because your system does not have the required external
 dependencies installed.
 
@@ -55,7 +55,7 @@ interface.  In this case, the resulting file contains which CFLAGS are in use,
 not which ones are not in use.
 
 If you would like to save your choices and have them applied against all
-builds, the file can be copied to '~/.asterisk.makeopts' or 
+builds, the file can be copied to '~/.asterisk.makeopts' or
 '/etc/asterisk.makeopts'.
 
 Build Process (Makefile targets):
@@ -105,10 +105,10 @@ PBX Core:
 
 * The (very old and undocumented) ability to use BYEXTENSION for dialing
   instead of ${EXTEN} has been removed.
-  
+
 * Builtin (res_features) transfer functionality attempts to use the context
   defined in TRANSFER_CONTEXT variable of the transferer channel first. If
-  not set, it uses the transferee variable. If not set in any channel, it will 
+  not set, it uses the transferee variable. If not set in any channel, it will
   attempt to use the last non macro context. If not possible, it will default
   to the current context.
 
@@ -116,7 +116,7 @@ PBX Core:
   if your dialplan relies on the ability to 'run off the end' of an extension
   and wait for a new extension without using WaitExten() to accomplish that,
   you will need set autofallthrough to 'no' in your extensions.conf file.
+
 Command Line Interface:
 
 * 'show channels concise', designed to be used by applications that will parse
@@ -155,10 +155,10 @@ Applications:
 
 * OSPAuth is added to authenticate OSP tokens in in_bound call setup messages.
 
-* The CONNECT event in the queue_log from app_queue now has a second field 
-  in addition to the holdtime field. It contains the unique ID of the 
-  queue member channel that is taking the call. This is useful when trying 
-  to link recording filenames back to a particular call from the queue.  
+* The CONNECT event in the queue_log from app_queue now has a second field
+  in addition to the holdtime field. It contains the unique ID of the
+  queue member channel that is taking the call. This is useful when trying
+  to link recording filenames back to a particular call from the queue.
 
 * The old/current behavior of app_queue has a serial type behavior
   in that the queue will make all waiting callers wait in the queue
@@ -170,14 +170,14 @@ Applications:
   waits while this happens. This cycle continues until there are
   no more available members or waiting callers, whichever comes first.
   The new behavior, enabled by setting autofill=yes in queues.conf
-  either at the [general] level to default for all queues or 
-  to set on a per-queue level, makes sure that when the waiting 
-  callers are connecting with available members in a parallel fashion 
+  either at the [general] level to default for all queues or
+  to set on a per-queue level, makes sure that when the waiting
+  callers are connecting with available members in a parallel fashion
   until there are no more available members or no more waiting callers,
   whichever comes first. This is probably more along the lines of how
-  one would expect a queue should work and in most cases, you will want 
-  to enable this new behavior. If you do not specify or comment out this 
-  option, it will default to "no" to keep backward compatability with the old 
+  one would expect a queue should work and in most cases, you will want
+  to enable this new behavior. If you do not specify or comment out this
+  option, it will default to "no" to keep backward compatability with the old
   behavior.
 
 * Queues depend on the channel driver reporting the proper state
@@ -197,7 +197,7 @@ Applications:
        call-limit=10
 
 
-* The app_queue application now has the ability to use MixMonitor to 
+* The app_queue application now has the ability to use MixMonitor to
   record conversations queue members are having with queue callers. Please
   see configs/queues.conf.sample for more information on this option.
 
@@ -212,9 +212,9 @@ Applications:
   other external program in order to mix the audio.
 
 * app_meetme: The 'm' option (monitor) is renamed to 'l' (listen only), and
-  the 'm' option now provides the functionality of "initially muted". 
+  the 'm' option now provides the functionality of "initially muted".
   In practice, most existing dialplans using the 'm' flag should not notice
-  any difference, unless the keypad menu is enabled, allowing the user 
+  any difference, unless the keypad menu is enabled, allowing the user
   to unmute themsleves.
 
 * ast_play_and_record would attempt to cancel the recording if a DTMF
@@ -255,10 +255,10 @@ Applications:
   previously used only by EXTENDED_ODBC_STORAGE. This means that you will need to update
   your table format using the schema provided in doc/odbcstorage.txt
 
-* app_waitforsilence: Fixes have been made to this application which changes the 
+* app_waitforsilence: Fixes have been made to this application which changes the
   default behavior with how quickly it returns. You can maintain "old-style" behavior
   with the addition/use of a third "timeout" parameter.
-  Please consult the application documentation and make changes to your dialplan 
+  Please consult the application documentation and make changes to your dialplan
   if appropriate.
 
 Manager:
@@ -270,9 +270,9 @@ Manager:
   until after the release of 1.4, when it will be removed.  Please use the time
   during the 1.4 release to make this transition.
 
-* The AgentConnect event now has an additional field called "BridgedChannel" 
-  which contains the unique ID of the queue member channel that is taking the 
-  call. This is useful when trying to link recording filenames back to 
+* The AgentConnect event now has an additional field called "BridgedChannel"
+  which contains the unique ID of the queue member channel that is taking the
+  call. This is useful when trying to link recording filenames back to
   a particular call from the queue.
 
 * app_userevent has been modified to always send Event: UserEvent with the
@@ -298,17 +298,17 @@ Variables:
   functions.  You are encouraged to move towards the associated dialplan
   function, as these variables will be removed in a future release.
 
-* The CDR-CSV variables uniqueid, userfield, and basing time on GMT are now 
+* The CDR-CSV variables uniqueid, userfield, and basing time on GMT are now
   adjustable from cdr.conf, instead of recompiling.
 
 * OSP applications exports several new variables, ${OSPINHANDLE},
   ${OSPOUTHANDLE}, ${OSPINTOKEN}, ${OSPOUTTOKEN}, ${OSPCALLING},
   ${OSPINTIMELIMIT}, and ${OSPOUTTIMELIMIT}
-  
+
 * Builtin transfer functionality sets the variable ${TRANSFERERNAME} in the new
   created channel. This variables holds the channel name of the transferer.
 
-* The dial plan variable PRI_CAUSE will be removed from future versions 
+* The dial plan variable PRI_CAUSE will be removed from future versions
   of Asterisk.
   It is replaced by adding a cause value to the hangup() application.
 
@@ -322,8 +322,8 @@ Functions:
   modules.conf file then you will need to explicitly load the modules that
   contain the functions you want to use.
 
-* The ENUMLOOKUP() function with the 'c' option (for counting the number of 
-  records), but the lookup fails to match any records, the returned value will 
+* The ENUMLOOKUP() function with the 'c' option (for counting the number of
+  records), but the lookup fails to match any records, the returned value will
   now be "0" instead of blank.
 
 * The REALTIME() function is now available in version 1.4 and app_realtime has
@@ -345,7 +345,7 @@ The IAX2 channel:
   which user you want based on host.
 
   If you would like to go ahead and use the new behavior which doesn't use the
-  order in the config file to influence matching order, then change the 
+  order in the config file to influence matching order, then change the
   MAX_PEER_BUCKETS define in chan_iax2.c to a value greater than one.  An
   example is provided there.  By changing this, you will get *much* better
   performance on systems that do a lot of peer and user lookups as they will be
@@ -360,12 +360,12 @@ The IAX2 channel:
 
 The SIP channel:
 
-* The "incominglimit" setting is replaced by the "call-limit" setting in 
+* The "incominglimit" setting is replaced by the "call-limit" setting in
   sip.conf.
 
-* OSP support code is removed from SIP channel to OSP applications. ospauth 
+* OSP support code is removed from SIP channel to OSP applications. ospauth
   option in sip.conf is removed to osp.conf as authpolicy. allowguest option
-  in sip.conf cannot be set as osp anymore. 
+  in sip.conf cannot be set as osp anymore.
 
 * The Asterisk RTP stack has been changed in regards to RFC2833 reception
   and transmission. Packets will now be sent with proper duration instead of all
@@ -419,10 +419,10 @@ The G726-32 codec:
 Installation:
 
 * On BSD systems, the installation directories have changed to more "FreeBSDish"
-  directories. On startup, Asterisk will look for the main configuration in 
+  directories. On startup, Asterisk will look for the main configuration in
   /usr/local/etc/asterisk/asterisk.conf
-  If you have an old installation, you might want to remove the binaries and 
-  move the configuration files to the new locations. The following directories 
+  If you have an old installation, you might want to remove the binaries and
+  move the configuration files to the new locations. The following directories
   are now default:
        ASTLIBDIR       /usr/local/lib/asterisk
        ASTVARLIBDIR    /usr/local/share/asterisk
@@ -476,7 +476,7 @@ CDR Records:
   set.  When using the "callerid" option for various channel drivers, some
   would set ANI and some would not.  This has been cleared up so that all
   channel drivers set ANI.  If you would like to change the callerid number
-  on the channel from the dialplan and have that change also show up in the 
+  on the channel from the dialplan and have that change also show up in the
   CDR, then you *must* set CALLERID(ANI) as well as CALLERID(num).
 
 API:
@@ -492,7 +492,6 @@ Formats:
 * format_wav: The GAIN preprocessor definition has been changed from 2 to 0
   in Asterisk 1.4.  This change was made in response to user complaints of
   choppiness or the clipping of loud signal peaks.  The GAIN preprocessor
-  definition will be retained in Asterisk 1.4, but will be removed in a 
+  definition will be retained in Asterisk 1.4, but will be removed in a
   future release.  The use of GAIN for the increasing of voicemail message
   volume should use the 'volgain' option in voicemail.conf
-
index d0fc82a..4ae4401 100644 (file)
@@ -39,7 +39,7 @@ Core:
   sound file installer in the Makefile).
 
 * The ast_expr2 stuff has been modified to handle floating-point numbers.
-  Numbers of the format D.D are now acceptable input for the expr parser, 
+  Numbers of the format D.D are now acceptable input for the expr parser,
   Where D is a string of base-10 digits. All math is now done in "long double",
   if it is available on your compiler/architecture. This was half-way between
   a bug-fix (because the MATH func returns fp by default), and an enhancement.
@@ -48,7 +48,7 @@ Core:
   of rounding/truncation, along with a set of common floating point operations,
   like sin, cos, tan, log, pow, etc. The ability to call external functions
   like CDR(), etc. was also added, without having to use the ${...} notation.
+
 * The delimiter passed to applications has been changed to the comma (','), as
   that is what people are used to using within extensions.conf.  If you are
   using realtime extensions, you will need to translate your existing dialplan
@@ -190,7 +190,7 @@ Formats:
 Channel Drivers:
 
 * SIP: a small upgrade to support the "Record" button on the SNOM360,
-  which sends a sip INFO message with a "Record: on" or "Record: off" 
+  which sends a sip INFO message with a "Record: on" or "Record: off"
   header. If Asterisk is set up (via features.conf) to accept "One Touch Monitor"
   requests (by default, via '*1'), then the user-configured dialpad sequence
   is generated, and recording can be started and stopped via this button. The
@@ -204,9 +204,9 @@ Channel Drivers:
   now renamed to "counteronpeer".
 
 * SIP: The "username" option is now renamed to "defaultuser" to match "defaultip".
-  These are used only before registration to call a peer with the uri 
+  These are used only before registration to call a peer with the uri
        sip:defaultuser@defaultip
-  The "username" setting still work, but is deprecated and will not work in 
+  The "username" setting still work, but is deprecated and will not work in
   the next version of Asterisk.
 
 * SIP: The old "insecure" options, deprecated in 1.4, have been removed.
@@ -241,7 +241,7 @@ Channel Drivers:
 Configuration:
 
 * pbx_dundi.c: tos parameter changed to use new values. Old values like lowdelay,
-  lowcost and other is not acceptable now. Look into qos.tex for description of 
+  lowcost and other is not acceptable now. Look into qos.tex for description of
   this parameter.
 
 * queues.conf: the queue-lessthan sound file option is no longer available, and the
@@ -249,7 +249,7 @@ Configuration:
 
 Manager:
 
-* Manager has been upgraded to version 1.1 with a lot of changes. 
+* Manager has been upgraded to version 1.1 with a lot of changes.
   Please check doc/manager_1_1.txt for information
 
 * The IAXpeers command output has been changed to more closely resemble the
index e23d5da..b01f762 100644 (file)
@@ -73,9 +73,9 @@ From 1.6.2 to 1.8:
   it is set to load. If not, then any module which uses RTP (such as chan_sip)
   will not be able to send or receive calls.
 
-* The app_dahdiscan.c file has been removed, but the dialplan app DAHDIScan still 
-  remains. It now exists within app_chanspy.c and retains the exact same 
-  functionality as before. 
+* The app_dahdiscan.c file has been removed, but the dialplan app DAHDIScan still
+  remains. It now exists within app_chanspy.c and retains the exact same
+  functionality as before.
 
 * The default behavior for Set, AGI, and pbx_realtime has been changed to implement
   1.6 behavior by default, if there is no [compat] section in asterisk.conf.  In
@@ -111,7 +111,7 @@ From 1.6.2 to 1.8:
 * ExternalIVR will now send Z events for invalid or missing files, T events
   now include the interrupted file and bugs in argument parsing have been
   fixed so there may be arguments specified in incorrect ways that were
-  working that will no longer work. Please see 
+  working that will no longer work. Please see
   https://wiki.asterisk.org/wiki/display/AST/External+IVR+Interface for details.
 
 * OSP lookup application changes following variable names:
@@ -185,7 +185,7 @@ From 1.6.1 to 1.6.2:
 
 * SIP no longer sends the 183 progress message for early media by
   default.  Applications requiring early media should use the
-  progress() dialplan app to generate the progress message. 
+  progress() dialplan app to generate the progress message.
 
 * The firmware for the IAXy has been removed from Asterisk.  It can be
   downloaded from http://downloads.digium.com/pub/iaxy/.  To have Asterisk
@@ -269,8 +269,8 @@ From 1.6.1 to 1.6.2:
 * DAHDISendCallreroutingFacility() parameters are now comma-separated,
   instead of the old pipe.
 
-* res_jabber: autoprune has been disabled by default, to avoid misconfiguration 
-  that would end up being interpreted as a bug once Asterisk started removing 
+* res_jabber: autoprune has been disabled by default, to avoid misconfiguration
+  that would end up being interpreted as a bug once Asterisk started removing
   the contacts from a user list.
 
 * The cdr.conf file must exist and be configured correctly in order for CDR
@@ -341,4 +341,3 @@ From 1.6.0.x to 1.6.1:
 * If you use ODBC storage for voicemail, there is a new field called "flag"
   which should be a char(8) or larger.  This field specifies whether or not a
   message has been designated to be "Urgent", "PRIORITY", or not.
-
index 35a9fcb..f4b2bec 100644 (file)
@@ -79,10 +79,10 @@ Asterisk Database:
    convert an existing astdb to the SQLite3 version automatically at runtime.
 
 Module Support Level
- - All modules in the addons, apps, bridge, cdr, cel, channels, codecs, 
+ - All modules in the addons, apps, bridge, cdr, cel, channels, codecs,
    formats, funcs, pbx, and res have been updated to include MODULEINFO data
    that includes <support_level> tags with a value of core, extended, or deprecated.
-   More information is available on the Asterisk wiki at 
+   More information is available on the Asterisk wiki at
    https://wiki.asterisk.org/wiki/display/AST/Asterisk+Module+Support+States
 
    Deprecated modules are now marked to not build by default and must be explicitly
index 311edc8..58b70b6 100644 (file)
@@ -185,7 +185,7 @@ SIP
    configuration option. Symptoms of this include one way media or no media flow.
 
 chan_unistim
- - Due to massive update in chan_unistim phone keys functions and on-screen 
+ - Due to massive update in chan_unistim phone keys functions and on-screen
    information changed.
 
 users.conf:
@@ -257,10 +257,10 @@ Manager:
    unchanged.
 
 Module Support Level
- - All modules in the addons, apps, bridge, cdr, cel, channels, codecs, 
+ - All modules in the addons, apps, bridge, cdr, cel, channels, codecs,
    formats, funcs, pbx, and res have been updated to include MODULEINFO data
    that includes <support_level> tags with a value of core, extended, or deprecated.
-   More information is available on the Asterisk wiki at 
+   More information is available on the Asterisk wiki at
    https://wiki.asterisk.org/wiki/display/AST/Asterisk+Module+Support+States
 
    Deprecated modules are now marked to not build by default and must be explicitly
index 79cafa1..665e016 100644 (file)
@@ -427,12 +427,12 @@ Parking:
  - Configuration is found in res_parking.conf. It is no longer supported in
    features.conf
 
- - The arguments for the Park, ParkedCall, and ParkAndAnnounce applications 
-   have been modified significantly. See the application documents for 
+ - The arguments for the Park, ParkedCall, and ParkAndAnnounce applications
+   have been modified significantly. See the application documents for
    specific details.
 
  - Numerous changes to Parking related applications, AMI and CLI commands and
-   internal inter-workings  have been made. Please read the CHANGES file for 
+   internal inter-workings  have been made. Please read the CHANGES file for
    the detailed list.
 
 Security Events Framework:
index 6901daf..1a79afe 100644 (file)
@@ -27,7 +27,7 @@
  * \addtogroup configuration_file Configuration Files
  */
 
-/*! 
+/*!
  * \page app_mysql.conf app_mysql.conf
  * \verbinclude app_mysql.conf.sample
  */
@@ -335,7 +335,7 @@ static int aMYSQL_connect(struct ast_channel *chan, const char *data)
        unsigned int port = 0;
        char *port_str;
        char *parse = ast_strdupa(data);
+
        AST_NONSTANDARD_APP_ARGS(args, parse, ' ');
 
        if (args.argc < 6) {
@@ -626,8 +626,8 @@ static int unload_module(void)
  * Module loading including tests for configuration or dependencies.
  * This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
  * or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
- * tests return AST_MODULE_LOAD_FAILURE. If the module can not load the 
- * configuration file or other non-critical problem return 
+ * tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
+ * configuration file or other non-critical problem return
  * AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
  */
 static int load_module(void)
@@ -665,4 +665,3 @@ static int load_module(void)
 }
 
 AST_MODULE_INFO_STANDARD_DEPRECATED(ASTERISK_GPL_KEY, "Simple Mysql Interface");
-
index 1f97362..b2e0a4c 100644 (file)
@@ -718,4 +718,3 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "MySQL CDR Backend",
        .unload = unload_module,
        .reload = reload,
 );
-
index 8f04af7..7d92f8d 100644 (file)
@@ -16,7 +16,7 @@
  * at the top of the source tree.
  */
 
-/*! 
+/*!
  * \file
  * \brief Bluetooth Mobile Device channel driver
  *
@@ -1772,7 +1772,7 @@ static int rfcomm_read_command(int rsock, char **buf, size_t count, size_t *in_c
  * \verbatim
  * \r\n<result code>\r\n
  * <at command>\r
- * \r\n> 
+ * \r\n>
  * \endverbatim
  *
  * These formats correspond to AT result codes, AT commands, and the AT SMS
@@ -2254,7 +2254,7 @@ static int hfp_parse_cmti(struct hfp_pvt *hfp, char *buf)
        int index = -1;
 
        /* parse cmti info in the following format:
-        * +CMTI: <mem>,<index> 
+        * +CMTI: <mem>,<index>
         */
        if (!sscanf(buf, "+CMTI: %*[^,],%d", &index)) {
                ast_debug(2, "[%s] error parsing CMTI event '%s'\n", hfp->owner->id, buf);
index 0d5a588..c25c130 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 2004-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
@@ -135,7 +135,7 @@ static int function_ooh323_write(struct ast_channel *chan, const char *cmd, char
 
 static enum ast_rtp_glue_result ooh323_get_rtp_peer(struct ast_channel *chan, struct ast_rtp_instance **rtp);
 static enum ast_rtp_glue_result ooh323_get_vrtp_peer(struct ast_channel *chan, struct ast_rtp_instance **rtp);
-static int ooh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp_instance *rtp, 
+static int ooh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp_instance *rtp,
           struct ast_rtp_instance *vrtp, struct ast_rtp_instance *trtp, const struct ast_format_cap *codecs, int nat_active);
 static void ooh323_get_codec(struct ast_channel *chan, struct ast_format_cap *result);
 void setup_rtp_remote(ooCallData *call, const char *remoteIp, int remotePort);
@@ -218,7 +218,7 @@ static struct ooh323_pvt {
        char callee_dialedDigits[AST_MAX_EXTENSION];
        char callee_email[AST_MAX_EXTENSION];
        char callee_url[AST_MAX_EXTENSION];
+
        int port;
        struct ast_format *readformat;   /* negotiated read format */
        struct ast_format *writeformat;  /* negotiated write format */
@@ -394,7 +394,7 @@ static struct ooh323_config
 static struct ast_sched_context *sched;
 static struct io_context *io;
 
-/* Protect the monitoring thread, so only one process can kill or start it, 
+/* Protect the monitoring thread, so only one process can kill or start it,
    and not when it's doing something critical. */
 AST_MUTEX_DEFINE_STATIC(monlock);
 
@@ -405,7 +405,7 @@ static pthread_t monitor_thread = AST_PTHREADT_NULL;
 
 
 static struct ast_channel *ooh323_new(struct ooh323_pvt *i, int state,
-                                             const char *host, struct ast_format_cap *cap, 
+                                             const char *host, struct ast_format_cap *cap,
                                                                                         const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor)
 {
        struct ast_format_cap *caps = NULL;
@@ -422,12 +422,12 @@ static struct ast_channel *ooh323_new(struct ooh323_pvt *i, int state,
        /* Don't hold a h323 pvt lock while we allocate a channel */
        ast_mutex_unlock(&i->lock);
        ast_mutex_lock(&ooh323c_cn_lock);
-       ch = ast_channel_alloc(1, state, i->callerid_num, i->callerid_name, 
+       ch = ast_channel_alloc(1, state, i->callerid_num, i->callerid_name,
                                i->accountcode, i->exten, i->context, assignedids, requestor, i->amaflags,
                                "OOH323/%s-%ld", host, callnumber);
        callnumber++;
        ast_mutex_unlock(&ooh323c_cn_lock);
-   
+
        ast_mutex_lock(&i->lock);
 
        if (ch && caps) {
@@ -497,17 +497,17 @@ static struct ast_channel *ooh323_new(struct ooh323_pvt *i, int state,
                ast_channel_priority_set(ch, 1);
 
                if(!ast_test_flag(i, H323_OUTGOING)) {
-               
+
                        if (!ast_strlen_zero(i->caller_h323id)) {
                                pbx_builtin_setvar_helper(ch, "_CALLER_H323ID", i->caller_h323id);
 
                        }
                        if (!ast_strlen_zero(i->caller_dialedDigits)) {
-                               pbx_builtin_setvar_helper(ch, "_CALLER_H323DIALEDDIGITS", 
+                               pbx_builtin_setvar_helper(ch, "_CALLER_H323DIALEDDIGITS",
                                i->caller_dialedDigits);
                        }
                        if (!ast_strlen_zero(i->caller_email)) {
-                               pbx_builtin_setvar_helper(ch, "_CALLER_H323EMAIL", 
+                               pbx_builtin_setvar_helper(ch, "_CALLER_H323EMAIL",
                                i->caller_email);
                        }
                        if (!ast_strlen_zero(i->caller_url)) {
@@ -517,7 +517,7 @@ static struct ast_channel *ooh323_new(struct ooh323_pvt *i, int state,
 
                if (!ast_strlen_zero(i->accountcode))
                        ast_channel_accountcode_set(ch, i->accountcode);
-               
+
                if (i->amaflags)
                        ast_channel_amaflags_set(ch, i->amaflags);
 
@@ -528,7 +528,7 @@ static struct ast_channel *ooh323_new(struct ooh323_pvt *i, int state,
                                ast_channel_unlock(ch);
                                ast_hangup(ch);
                                ch = NULL;
-                       } 
+                       }
                }
 
                if (ch) {
@@ -552,7 +552,7 @@ static struct ast_channel *ooh323_new(struct ooh323_pvt *i, int state,
 
 
 
-static struct ooh323_pvt *ooh323_alloc(int callref, char *callToken) 
+static struct ooh323_pvt *ooh323_alloc(int callref, char *callToken)
 {
        struct ooh323_pvt *pvt = NULL;
 
@@ -602,7 +602,7 @@ static struct ooh323_pvt *ooh323_alloc(int callref, char *callToken)
 
        pvt->aniasdni = gANIasDNI;
 
-       ast_mutex_unlock(&pvt->lock); 
+       ast_mutex_unlock(&pvt->lock);
        /* Add to interface list */
        ast_mutex_lock(&iflock);
        pvt->next = iflist;
@@ -628,7 +628,7 @@ static struct ast_channel *ooh323_request(const char *type, struct ast_format_ca
        struct ast_channel *chan = NULL;
        struct ooh323_pvt *p = NULL;
        struct ooh323_peer *peer = NULL;
-       char *dest = NULL; 
+       char *dest = NULL;
        char *ext = NULL;
        char tmp[256];
        int port = 0;
@@ -658,7 +658,7 @@ static struct ast_channel *ooh323_request(const char *type, struct ast_format_ca
 
        dest = strchr(tmp, '/');
 
-       if (dest) {  
+       if (dest) {
                *dest = '\0';
                dest++;
                ext = dest;
@@ -769,7 +769,7 @@ static struct ast_channel *ooh323_request(const char *type, struct ast_format_ca
 
        chan = ooh323_new(p, AST_STATE_DOWN, p->username, cap,
                                 assignedids, requestor);
-       
+
        ast_mutex_unlock(&p->lock);
 
        if (!chan) {
@@ -856,7 +856,7 @@ struct ooh323_user *find_user(const char * name, const char* ip)
 
 struct ooh323_peer *find_friend(const char *name, int port)
 {
-       struct ooh323_peer *peer;  
+       struct ooh323_peer *peer;
 
        if (gH323Debug)
                ast_verb(0, "---   find_friend \"%s\"\n", name);
@@ -882,7 +882,7 @@ struct ooh323_peer *find_friend(const char *name, int port)
                ast_verb(0, "+++   find_friend \"%s\"\n", name);
        }
 
-       return peer;            
+       return peer;
 }
 
 
@@ -921,7 +921,7 @@ struct ooh323_peer *find_peer(const char * name, int port)
                ast_verb(0, "+++   find_peer \"%s\"\n", name);
        }
 
-       return peer;            
+       return peer;
 }
 
 static int ooh323_digit_begin(struct ast_channel *chan, char digit)
@@ -929,7 +929,7 @@ static int ooh323_digit_begin(struct ast_channel *chan, char digit)
        char dtmf[2];
        struct ooh323_pvt *p = (struct ooh323_pvt *) ast_channel_tech_pvt(chan);
        int res = 0;
-       
+
        if (gH323Debug)
                ast_verb(0, "---   ooh323_digit_begin\n");
 
@@ -1036,7 +1036,7 @@ static int ooh323_call(struct ast_channel *ast, const char *dest, int timeout)
        if ((val = pbx_builtin_getvar_helper(ast, "CALLER_H323ID"))) {
                ast_copy_string(p->caller_h323id, val, sizeof(p->caller_h323id));
        }
-       
+
        if ((val = pbx_builtin_getvar_helper(ast, "CALLER_H323DIALEDDIGITS"))) {
                ast_copy_string(p->caller_dialedDigits, val, sizeof(p->caller_dialedDigits));
                if(!p->callerid_num)
@@ -1117,13 +1117,13 @@ static int ooh323_hangup(struct ast_channel *ast)
 
                if (gH323Debug)
                        ast_verb(0, "    hanging %s with cause: %d\n", p->username, q931cause);
-               ast_channel_tech_pvt_set(ast, NULL); 
+               ast_channel_tech_pvt_set(ast, NULL);
                if (!ast_test_flag(p, H323_ALREADYGONE)) {
-                       ooHangCall(p->callToken, 
+                       ooHangCall(p->callToken,
                                ooh323_convert_hangupcause_asteriskToH323(q931cause), q931cause);
                        ast_set_flag(p, H323_ALREADYGONE);
                        /* ast_mutex_unlock(&p->lock); */
-               } else 
+               } else
                        ast_set_flag(p, H323_NEEDDESTROY);
                /* detach channel here */
                if (p->owner) {
@@ -1139,11 +1139,11 @@ static int ooh323_hangup(struct ast_channel *ast)
 
                /* Notify the module monitors that use count for resource has changed */
                ast_update_use_count();
-         
+
        } else {
                ast_debug(1, "No call to hangup\n" );
        }
-       
+
        if (gH323Debug)
                ast_verb(0, "+++   ooh323_hangup\n");
 
@@ -1166,7 +1166,7 @@ static int ooh323_answer(struct ast_channel *ast)
                        ast_channel_lock(ast);
                        if (!p->alertsent) {
                                if (gH323Debug) {
-                                       ast_debug(1, "Sending forced ringback for %s, res = %u\n", 
+                                       ast_debug(1, "Sending forced ringback for %s, res = %u\n",
                                                callToken, ooManualRingback(callToken));
                                } else {
                                        ooManualRingback(callToken);
@@ -1228,7 +1228,7 @@ static int ooh323_write(struct ast_channel *ast, struct ast_frame *f)
                        return res;
                }
 
-       
+
                if (f->frametype == AST_FRAME_VOICE) {
 /* sending progress for first */
                        if (!ast_test_flag(p, H323_OUTGOING) && !p->progsent &&
@@ -1266,7 +1266,7 @@ static int ooh323_write(struct ast_channel *ast, struct ast_frame *f)
                        ast_mutex_unlock(&p->lock);
                        return 0;
                } else {
-                       ast_log(LOG_WARNING, "Can't send %u type frames with OOH323 write\n", 
+                       ast_log(LOG_WARNING, "Can't send %u type frames with OOH323 write\n",
                                                                         f->frametype);
                        ast_mutex_unlock(&p->lock);
                        return 0;
@@ -1303,7 +1303,7 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d
        if (gH323Debug) {
                ast_verb(0, "----- ooh323_indicate %d on call %s\n", condition, callToken);
        }
-        
+
        ast_mutex_lock(&p->lock);
        switch (condition) {
        case AST_CONTROL_INCOMPLETE:
@@ -1331,7 +1331,7 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d
                        if (!p->progsent) {
                                if (gH323Debug) {
                                        ast_debug(1, "Sending manual progress for %s, res = %u\n", callToken,
-                                       ooManualProgress(callToken));   
+                                       ooManualProgress(callToken));
                                } else {
                                        ooManualProgress(callToken);
                                }
@@ -1476,7 +1476,7 @@ static int ooh323_queryoption(struct ast_channel *ast, int option, void *data, i
 
        if (gH323Debug)
                ast_verb(0, "----- ooh323_queryoption %d on channel %s\n", option, ast_channel_name(ast));
-        
+
        switch (option) {
 
                case AST_OPTION_T38_STATE:
@@ -1516,7 +1516,7 @@ static int ooh323_queryoption(struct ast_channel *ast, int option, void *data, i
 
        if (gH323Debug)
                ast_verb(0, "+++++ ooh323_queryoption %d on channel %s\n", option, ast_channel_name(ast));
-        
+
        ast_mutex_unlock(&p->lock);
 
        return res;
@@ -1560,9 +1560,9 @@ void ooh323_set_write_format(ooCallData *call, struct ast_format *fmt, int txfra
        struct ooh323_pvt *p = NULL;
 
        if (gH323Debug)
-               ast_verb(0, "---   ooh323_update_writeformat %s/%d\n", 
+               ast_verb(0, "---   ooh323_update_writeformat %s/%d\n",
                                ast_format_get_name(fmt), txframes);
-       
+
        p = find_call(call);
        if (!p) {
                ast_log(LOG_ERROR, "No matching call found for %s\n", call->callToken);
@@ -1594,7 +1594,7 @@ void ooh323_set_write_format(ooCallData *call, struct ast_format *fmt, int txfra
                }
                if (gH323Debug) {
                        struct ast_str *codec_buf = ast_str_alloca(AST_FORMAT_CAP_NAMES_LEN);
-                       ast_verb(0, "Writeformat before update %s/%s\n", 
+                       ast_verb(0, "Writeformat before update %s/%s\n",
                          ast_format_get_name(ast_channel_writeformat(p->owner)),
                          ast_format_cap_get_names(ast_channel_nativeformats(p->owner), &codec_buf));
                }
@@ -1632,9 +1632,9 @@ void ooh323_set_read_format(ooCallData *call, struct ast_format *fmt)
        struct ooh323_pvt *p = NULL;
 
        if (gH323Debug)
-               ast_verb(0, "---   ooh323_update_readformat %s\n", 
+               ast_verb(0, "---   ooh323_update_readformat %s\n",
                                ast_format_get_name(fmt));
-       
+
        p = find_call(call);
        if (!p) {
                ast_log(LOG_ERROR, "No matching call found for %s\n", call->callToken);
@@ -1666,7 +1666,7 @@ void ooh323_set_read_format(ooCallData *call, struct ast_format *fmt)
                }
 
                if (gH323Debug) {
-                       ast_verb(0, "Readformat before update %s\n", 
+                       ast_verb(0, "Readformat before update %s\n",
                          ast_format_get_name(ast_channel_readformat(p->owner)));
                }
                ast_format_cap_append(caps, fmt, 0);
@@ -1697,7 +1697,7 @@ int onAlerting(ooCallData *call)
        if(!p) {
                ast_log(LOG_ERROR, "No matching call found\n");
                return -1;
-       }  
+       }
        ast_mutex_lock(&p->lock);
        if (!p->owner) {
                ast_mutex_unlock(&p->lock);
@@ -1753,7 +1753,7 @@ int onProgress(ooCallData *call)
        if(!p) {
                ast_log(LOG_ERROR, "No matching call found\n");
                return -1;
-       }  
+       }
        ast_mutex_lock(&p->lock);
        if (!p->owner) {
                ast_mutex_unlock(&p->lock);
@@ -1861,7 +1861,7 @@ int ooh323_onReceivedSetup(ooCallData *call, Q931Message *pmsg)
        }
        ast_mutex_lock(&p->lock);
        ast_clear_flag(p, H323_OUTGOING);
-  
+
 
        if (call->remoteDisplayName) {
                p->callerid_name = ast_strdup(call->remoteDisplayName);
@@ -1883,7 +1883,7 @@ int ooh323_onReceivedSetup(ooCallData *call, Q931Message *pmsg)
          {
             if(!p->callerid_num)
                p->callerid_num = ast_strdup(alias->value);
-                               ast_copy_string(p->caller_dialedDigits, alias->value, 
+                               ast_copy_string(p->caller_dialedDigits, alias->value,
                                                                                                                        sizeof(p->caller_dialedDigits));
          }
          else if(alias->type == T_H225AliasAddress_email_ID)
@@ -1955,7 +1955,7 @@ int ooh323_onReceivedSetup(ooCallData *call, Q931Message *pmsg)
 
                if (user->rtpmask && user->rtpmaskstr[0]) {
                        p->rtpmask = user->rtpmask;
-                       ast_copy_string(p->rtpmaskstr, user->rtpmaskstr, 
+                       ast_copy_string(p->rtpmaskstr, user->rtpmaskstr,
                                                         sizeof(p->rtpmaskstr));
                }
                if (user->rtdrcount > 0 && user->rtdrinterval > 0) {
@@ -2050,7 +2050,7 @@ int onOutgoingCall(ooCallData *call)
                                        ooCallSetCallerId(call, p->callerid_num);
                        }
                }
-               
+
                if (!ast_strlen_zero(p->caller_h323id))
                        ooCallAddAliasH323ID(call, p->caller_h323id);
 
@@ -2131,7 +2131,7 @@ int onNewCallCreated(ooCallData *call)
                                        ooCallSetCallerId(call, p->callerid_num);
                        }
                }
-               
+
                if (!ast_strlen_zero(p->caller_h323id))
                        ooCallAddAliasH323ID(call, p->caller_h323id);
 
@@ -2150,7 +2150,7 @@ int onNewCallCreated(ooCallData *call)
                                ooCallAddAliasH323ID(call, p->callerid_num);
                        }
                }
-  
+
 
                if (!ast_strlen_zero(p->exten))  {
                        if (ooIsDailedDigit(p->exten)) {
@@ -2164,7 +2164,7 @@ int onNewCallCreated(ooCallData *call)
                if (gH323Debug) {
                        struct ast_str *codec_buf = ast_str_alloca(AST_FORMAT_CAP_NAMES_LEN);
 
-                       ast_verb(0, " Outgoing call %s(%s) - Codec prefs - %s\n", 
+                       ast_verb(0, " Outgoing call %s(%s) - Codec prefs - %s\n",
                                p->username?p->username:"NULL", call->callToken,
                                ast_format_cap_get_names(p->cap, &codec_buf));
                }
@@ -2203,7 +2203,7 @@ int onCallEstablished(ooCallData *call)
                        ast_log(LOG_ERROR, "Channel has no owner\n");
                        return -1;
                }
-       
+
                while (p->owner && ast_channel_trylock(p->owner)) {
                        ast_debug(1, "Failed to grab lock, trying again\n");
                        DEADLOCK_AVOIDANCE(&p->lock);
@@ -2249,7 +2249,7 @@ int onCallCleared(ooCallData *call)
 
    if ((p = find_call(call))) {
        ast_mutex_lock(&p->lock);
-  
+
        while (p->owner) {
                if (ast_channel_trylock(p->owner)) {
                        ooTrace(OOTRCLVLINFO, "Failed to grab lock, trying again\n");
@@ -2261,7 +2261,7 @@ int onCallCleared(ooCallData *call)
        }
 
        if (ownerLock) {
-               if (!ast_test_flag(p, H323_ALREADYGONE)) { 
+               if (!ast_test_flag(p, H323_ALREADYGONE)) {
 
                        ast_set_flag(p, H323_ALREADYGONE);
                        ast_channel_hangupcause_set(p->owner, call->q931cause);
@@ -2305,7 +2305,7 @@ int onCallCleared(ooCallData *call)
        if (gH323Debug)
                ast_verb(0, "---   ooh323_delete_user\n");
 
-       if (user) {     
+       if (user) {
                cur = userl.users;
                ast_mutex_lock(&userl.lock);
                while (cur) {
@@ -2323,7 +2323,7 @@ int onCallCleared(ooCallData *call)
                ast_mutex_unlock(&userl.lock);
 
                ast_free(user);
-       }  
+       }
 
        if (gH323Debug)
                ast_verb(0, "+++   ooh323_delete_user\n");
@@ -2337,7 +2337,7 @@ void ooh323_delete_peer(struct ooh323_peer *peer)
        if (gH323Debug)
                ast_verb(0, "---   ooh323_delete_peer\n");
 
-       if (peer) {     
+       if (peer) {
       cur = peerl.peers;
                ast_mutex_lock(&peerl.lock);
       while(cur) {
@@ -2361,7 +2361,7 @@ void ooh323_delete_peer(struct ooh323_peer *peer)
 
                ao2_cleanup(peer->cap);
                ast_free(peer);
-       }  
+       }
 
        if (gH323Debug)
                ast_verb(0, "+++   ooh323_delete_peer\n");
@@ -2433,11 +2433,11 @@ static struct ooh323_user *build_user(const char *name, struct ast_variable *v)
                                        user->rtptimeout = gRTPTimeout;
                        } else if (!strcasecmp(v->name, "rtpmask")) {
                                if ((user->rtpmask = ast_calloc(1, sizeof(struct OOH323Regex))) &&
-                                       (regcomp(&user->rtpmask->regex, v->value, REG_EXTENDED) 
+                                       (regcomp(&user->rtpmask->regex, v->value, REG_EXTENDED)
                                                                                        == 0)) {
                                        ast_mutex_init(&user->rtpmask->lock);
                                        user->rtpmask->inuse = 1;
-                                       ast_copy_string(user->rtpmaskstr, v->value, 
+                                       ast_copy_string(user->rtpmaskstr, v->value,
                                                                sizeof(user->rtpmaskstr));
                                } else user->rtpmask = NULL;
                        } else if (!strcasecmp(v->name, "disallow")) {
@@ -2454,7 +2454,7 @@ static struct ooh323_user *build_user(const char *name, struct ast_variable *v)
                                struct ast_sockaddr p;
                                if (!ast_parse_arg(v->value, PARSE_ADDR, &p)) {
                                        ast_copy_string(user->mIP, ast_sockaddr_stringify_addr(&p), sizeof(user->mIP)-1);
-                               } else {        
+                               } else {
                                        ast_copy_string(user->mIP, v->value, sizeof(user->mIP)-1);
                                }
                                user->mUseIP = 1;
@@ -2599,10 +2599,10 @@ static struct ooh323_peer *build_peer(const char *name, struct ast_variable *v,
                                struct ast_sockaddr p;
                                if (!ast_parse_arg(v->value, PARSE_ADDR, &p)) {
                                        ast_copy_string(peer->ip, ast_sockaddr_stringify_host(&p), sizeof(peer->ip));
-                               } else {        
+                               } else {
                                        ast_copy_string(peer->ip, v->value, sizeof(peer->ip));
                                }
-                       
+
                        } else if (!strcasecmp(v->name, "outgoinglimit")) {
                                peer->outgoinglimit = atoi(v->value);
                                if (peer->outgoinglimit < 0)
@@ -2628,11 +2628,11 @@ static struct ooh323_peer *build_peer(const char *name, struct ast_variable *v,
                                        peer->rtptimeout = gRTPTimeout;
                        } else if (!strcasecmp(v->name, "rtpmask")) {
                                if ((peer->rtpmask = ast_calloc(1, sizeof(struct OOH323Regex))) &&
-                                       (regcomp(&peer->rtpmask->regex, v->value, REG_EXTENDED) 
+                                       (regcomp(&peer->rtpmask->regex, v->value, REG_EXTENDED)
                                                                                        == 0)) {
                                        ast_mutex_init(&peer->rtpmask->lock);
                                        peer->rtpmask->inuse = 1;
-                                       ast_copy_string(peer->rtpmaskstr, v->value, 
+                                       ast_copy_string(peer->rtpmaskstr, v->value,
                                                                sizeof(peer->rtpmaskstr));
                                } else peer->rtpmask = NULL;
                        } else if (!strcasecmp(v->name, "disallow")) {
@@ -2721,9 +2721,9 @@ static int ooh323_do_reload(void)
        reload_config(1);
 
        /* Gatekeeper */
-       if (gRasGkMode == RasUseSpecificGatekeeper || 
+       if (gRasGkMode == RasUseSpecificGatekeeper ||
                gRasGkMode == RasDiscoverGatekeeper) {
-               ooGkClientInit(gRasGkMode, (gRasGkMode == RasUseSpecificGatekeeper) ? 
+               ooGkClientInit(gRasGkMode, (gRasGkMode == RasUseSpecificGatekeeper) ?
                                                                gGatekeeper : 0, 0);
                ooGkClientStart(gH323ep.gkClient);
        }
@@ -2738,10 +2738,10 @@ static int ooh323_do_reload(void)
                case T_H225AliasAddress_h323_ID:
                        ooH323EpAddAliasH323ID(pNewAlias->value);
                        break;
-               case T_H225AliasAddress_dialedDigits:   
+               case T_H225AliasAddress_dialedDigits:
                        ooH323EpAddAliasDialedDigits(pNewAlias->value);
                        break;
-               case T_H225AliasAddress_email_ID:       
+               case T_H225AliasAddress_email_ID:
                        ooH323EpAddAliasEmailID(pNewAlias->value);
                        break;
                default:
@@ -2889,7 +2889,7 @@ int reload_config(int reload)
                        v = v->next;
                        continue;
                }
-       
+
                if (!strcasecmp(v->name, "port")) {
                        gPort = (int)strtol(v->value, NULL, 10);
                } else if (!strcasecmp(v->name, "bindaddr")) {
@@ -2928,7 +2928,7 @@ int reload_config(int reload)
                        gMediaWaitForConnect = ast_true(v->value);
                        if (gMediaWaitForConnect)
                                ooH323EpEnableMediaWaitForConnect();
-                       else 
+                       else
                                ooH323EpDisableMediaWaitForConnect();
                } else if (!strcasecmp(v->name, "h245tunneling")) {
                        gTunneling = ast_true(v->value);
@@ -2949,7 +2949,7 @@ int reload_config(int reload)
                        gBeMaster = ast_true(v->value);
                        if (gBeMaster)
                                ooH323EpTryBeMaster(1);
-                       else 
+                       else
                                ooH323EpTryBeMaster(0);
                } else if (!strcasecmp(v->name, "h323id")) {
                        pNewAlias = ast_calloc(1, sizeof(struct ooAliases));
@@ -3081,7 +3081,7 @@ int reload_config(int reload)
                        else if (!strcasecmp(v->value, "h245signal"))
                                gDTMFMode = H323_DTMF_H245SIGNAL;
                        else {
-            ast_log(LOG_WARNING, "Unknown dtmf mode '%s', using rfc2833\n", 
+            ast_log(LOG_WARNING, "Unknown dtmf mode '%s', using rfc2833\n",
                                                                     v->value);
                                gDTMFMode = H323_DTMF_RFC2833;
                        }
@@ -3126,7 +3126,7 @@ int reload_config(int reload)
                }
                v = v->next;
        }
-       
+
        for (cat = ast_category_browse(cfg, NULL); cat; cat = ast_category_browse(cfg, cat)) {
                if (strcasecmp(cat, "general")) {
                        int friend_type = 0;
@@ -3183,7 +3183,7 @@ static char *handle_cli_ooh323_show_peer(struct ast_cli_entry *e, int cmd, struc
 {
        char ip_port[64];
        struct ooh323_peer *prev = NULL, *peer = NULL;
-       
+
        switch (cmd) {
        case CLI_INIT:
                e->command = "ooh323 show peer";
@@ -3304,7 +3304,7 @@ static char *handle_cli_ooh323_show_peers(struct ast_cli_entry *e, int cmd, stru
        while (peer) {
                ast_mutex_lock(&peer->lock);
                snprintf(ip_port, sizeof(ip_port), "%s:%hu", peer->ip, peer->port);
-               ast_cli(a->fd, FORMAT, peer->name, 
+               ast_cli(a->fd, FORMAT, peer->name,
                                        peer->accountcode,
                                        ip_port,
                                        ast_format_cap_get_names(peer->cap, &codec_buf));
@@ -3443,7 +3443,7 @@ static char *handle_cli_ooh323_show_users(struct ast_cli_entry *e, int cmd, stru
    while(user)
    {
                ast_mutex_lock(&user->lock);
-               ast_cli(a->fd, FORMAT1, user->name, 
+               ast_cli(a->fd, FORMAT1, user->name,
                                        user->accountcode, user->context,
                                        ast_format_cap_get_names(user->cap, &codec_buf));
                prev = user;
@@ -3798,7 +3798,7 @@ static int load_module(void)
                .onMediaChanged = (cb_OnMediaChanged) setup_rtp_remote,
        };
        if (!(gCap = ast_format_cap_alloc(AST_FORMAT_CAP_FLAG_DEFAULT))) {
-               return AST_MODULE_LOAD_DECLINE; 
+               return AST_MODULE_LOAD_DECLINE;
        }
        if (!(ooh323_tech.capabilities = ast_format_cap_alloc(AST_FORMAT_CAP_FLAG_DEFAULT))) {
                ao2_ref(gCap, -1);
@@ -3816,8 +3816,8 @@ static int load_module(void)
        ast_mutex_init(&userl.lock);
        peerl.peers = NULL;
        ast_mutex_init(&peerl.lock);
-#if 0          
+
+#if 0
        ast_register_atexit(&ast_ooh323c_exit);
 #endif
 
@@ -3831,7 +3831,7 @@ static int load_module(void)
 
        if (!reload_config(0)) {
 
-               /* fire up the H.323 Endpoint */                 
+               /* fire up the H.323 Endpoint */
                if (OO_OK != ooH323EpInitialize(OO_CALLMODE_AUDIOCALL, gLogFile)) {
                        ast_log(LOG_ERROR, "Failed to initialize OOH323 endpoint-"
                             "OOH323 Disabled\n");
@@ -3867,7 +3867,7 @@ static int load_module(void)
                        ast_debug(1, "OOH323 channel is in IP6 mode\n");
                }
                ooH323EpSetCallerID(gCallerID);
+
                if(ooH323EpSetTCPPortRange(ooconfig.mTCPPortStart, ooconfig.mTCPPortEnd) == OO_FAILED) {
                        ast_log(LOG_ERROR, "h225portrange: Failed to set range\n");
                }
@@ -3878,10 +3878,10 @@ static int load_module(void)
                        case T_H225AliasAddress_h323_ID:
                                ooH323EpAddAliasH323ID(pNewAlias->value);
                                break;
-                       case T_H225AliasAddress_dialedDigits:   
+                       case T_H225AliasAddress_dialedDigits:
                                ooH323EpAddAliasDialedDigits(pNewAlias->value);
                                break;
-                       case T_H225AliasAddress_email_ID:       
+                       case T_H225AliasAddress_email_ID:
                                ooH323EpAddAliasEmailID(pNewAlias->value);
                                break;
                        default:
@@ -3899,11 +3899,11 @@ static int load_module(void)
                        peer = peer->next;
                }
                ast_mutex_unlock(&peerl.lock);
-       
+
 
                if (gMediaWaitForConnect)
                        ooH323EpEnableMediaWaitForConnect();
-               else 
+               else
                        ooH323EpDisableMediaWaitForConnect();
 
                /* Fast start and tunneling options */
@@ -3938,12 +3938,12 @@ static int load_module(void)
                        ooh323_tech.capabilities = NULL;
                        return 1;
                }
-  
+
                /* Create H.323 listener */
                if (ooCreateH323Listener() != OO_OK) {
                        ast_log(LOG_ERROR, "OOH323 Listener Creation failure. "
                             "OOH323 DISABLED\n");
-               
+
                        ooH323EpDestroy();
                        ao2_ref(gCap, -1);
                        gCap = NULL;
@@ -4010,7 +4010,7 @@ static void *do_monitor(void *data)
                if (gH323ep.gkClient && gH323ep.gkClient->state == GkClientStopped) {
                        ooGkClientDestroy();
                        ast_verb(0, "Restart stopped gatekeeper client\n");
-                       ooGkClientInit(gRasGkMode, (gRasGkMode == RasUseSpecificGatekeeper) ? 
+                       ooGkClientInit(gRasGkMode, (gRasGkMode == RasUseSpecificGatekeeper) ?
                                                                        gGatekeeper : 0, 0);
                        ooGkClientStart(gH323ep.gkClient);
                }
@@ -4036,7 +4036,7 @@ static void *do_monitor(void *data)
                                        ast_log(LOG_NOTICE, "Disconnecting call '%s' for lack of RTP activity in %ld seconds\n", ast_channel_name(h323->owner), (long) (t - h323->lastrtprx));
                                        ast_channel_unlock(h323->owner);
                                }
-                               
+
                        }
 
                        if (ast_test_flag(h323, H323_NEEDDESTROY)) {
@@ -4136,7 +4136,7 @@ int ooh323_destroy(struct ooh323_pvt *p)
                        iflist = cur->next;
 
                if (cur->callToken) {
-                       if (gH323Debug) 
+                       if (gH323Debug)
                                ast_verb(0, " Destroying %s\n", cur->callToken);
                        ast_free(cur->callToken);
                        cur->callToken = 0;
@@ -4156,7 +4156,7 @@ int ooh323_destroy(struct ooh323_pvt *p)
                        ast_free(cur->callerid_name);
                        cur->callerid_name = 0;
                }
-               
+
                if (cur->callerid_num) {
                        ast_free(cur->callerid_num);
                        cur->callerid_num = 0;
@@ -4172,20 +4172,20 @@ int ooh323_destroy(struct ooh323_pvt *p)
                        ast_udptl_destroy(cur->udptl);
                        cur->udptl = NULL;
                }
-       
+
                /* Unlink us from the owner if we have one */
                if (cur->owner) {
                        while(ast_channel_trylock(cur->owner)) {
                                ast_debug(1, "Failed to grab lock, trying again\n");
                                DEADLOCK_AVOIDANCE(&cur->lock);
-                       }           
+                       }
                        ast_debug(1, "Detaching from %s\n", ast_channel_name(cur->owner));
                        ast_channel_tech_pvt_set(cur->owner, NULL);
                        ast_channel_unlock(cur->owner);
                        cur->owner = NULL;
                        ast_module_unref(myself);
                }
-  
+
                if (cur->vad) {
                        ast_dsp_free(cur->vad);
                        cur->vad = NULL;
@@ -4325,7 +4325,7 @@ static int unload_module(void)
 
        if (gH323Debug) {
                ast_verb(0, "  unload_module - stopping monitor thread\n");
-       }  
+       }
        if (monitor_thread != AST_PTHREADT_NULL) {
                if (!ast_mutex_lock(&monlock)) {
                        if (monitor_thread && (monitor_thread != AST_PTHREADT_STOP)) {
@@ -4368,7 +4368,7 @@ static int unload_module(void)
                ast_log(LOG_WARNING, "Unable to lock the interface list\n");
                return -1;
        }
+
 
        if (gH323Debug) {
                ast_verb(0, "  unload_module - deleting users\n");
@@ -4668,7 +4668,7 @@ int configure_local_rtp(struct ooh323_pvt *p, ooCallData *call)
                        ast_rtp_instance_set_timeout(p->rtp, p->rtptimeout);
                }
                ast_rtp_instance_set_prop(p->rtp, AST_RTP_PROPERTY_RTCP, 1);
-               
+
        }
 
        if (p->rtdrcount) {
@@ -4830,7 +4830,7 @@ void close_rtp_connection(ooCallData *call)
  udptl handling functions
  */
 
-void setup_udptl_connection(ooCallData *call, const char *remoteIp, 
+void setup_udptl_connection(ooCallData *call, const char *remoteIp,
                                                                  int remotePort)
 {
        struct ooh323_pvt *p = NULL;
@@ -4840,7 +4840,7 @@ void setup_udptl_connection(ooCallData *call, const char *remoteIp,
                ast_verb(0, "---   setup_udptl_connection\n");
 
        /* Find the call or allocate a private structure if call not found */
-       p = find_call(call); 
+       p = find_call(call);
 
        if (!p) {
                ast_log(LOG_ERROR, "Something is wrong: rtp\n");
@@ -4944,7 +4944,7 @@ int update_our_aliases(ooCallData *call, struct ooh323_pvt *p)
 {
        int updated = -1;
        ooAliases *psAlias = NULL;
-       
+
        if (!call->ourAliases)
                return updated;
        for (psAlias = call->ourAliases; psAlias; psAlias = psAlias->next) {
@@ -4953,7 +4953,7 @@ int update_our_aliases(ooCallData *call, struct ooh323_pvt *p)
                        updated = 1;
                }
                if (psAlias->type == T_H225AliasAddress_dialedDigits) {
-         ast_copy_string(p->callee_dialedDigits, psAlias->value, 
+         ast_copy_string(p->callee_dialedDigits, psAlias->value,
                                         sizeof(p->callee_dialedDigits));
                        updated = 1;
                }
@@ -5145,7 +5145,7 @@ void onModeChanged(ooCallData *call, int t38mode) {
                        }
                        parameters.max_ifp = ast_udptl_get_far_max_ifp(p->udptl);
                        parameters.rate = AST_T38_RATE_14400;
-                       ast_queue_control_data(p->owner, AST_CONTROL_T38_PARAMETERS, 
+                       ast_queue_control_data(p->owner, AST_CONTROL_T38_PARAMETERS,
                                                        &parameters, sizeof(parameters));
                        p->faxmode = 1;
 
@@ -5157,7 +5157,7 @@ void onModeChanged(ooCallData *call, int t38mode) {
                        parameters.request_response = AST_T38_REQUEST_TERMINATE;
                        parameters.max_ifp = ast_udptl_get_far_max_ifp(p->udptl);
                        parameters.rate = AST_T38_RATE_14400;
-                       ast_queue_control_data(p->owner, AST_CONTROL_T38_PARAMETERS, 
+                       ast_queue_control_data(p->owner, AST_CONTROL_T38_PARAMETERS,
                                                        &parameters, sizeof(parameters));
                }
                p->faxmode = 0;
@@ -5204,7 +5204,7 @@ int ooh323_convert_hangupcause_h323ToAsterisk(int cause)
        switch (cause) {
        case OO_REASON_REMOTE_REJECTED:
                return AST_CAUSE_CALL_REJECTED;
-       case OO_REASON_NOUSER: 
+       case OO_REASON_NOUSER:
                return AST_CAUSE_UNALLOCATED;
        case OO_REASON_REMOTE_BUSY:
        case OO_REASON_LOCAL_BUSY:
@@ -5216,7 +5216,7 @@ int ooh323_convert_hangupcause_h323ToAsterisk(int cause)
                return AST_CAUSE_CONGESTION;
        case OO_REASON_REMOTE_NOANSWER:
                return AST_CAUSE_NO_ANSWER;
-       case OO_REASON_UNKNOWN: 
+       case OO_REASON_UNKNOWN:
        case OO_REASON_INVALIDMESSAGE:
        case OO_REASON_TRANSPORTFAILURE:
                return AST_CAUSE_FAILURE;
index 1279a22..e4d285e 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 2004-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
@@ -85,7 +85,7 @@ struct ooh323_peer;
 /* Helper functions */
 struct ooh323_user *find_user(const char * name, const char *ip);
 struct ooh323_peer *find_peer(const char * name, int port);
-void ooh323_delete_peer(struct ooh323_peer *peer);   
+void ooh323_delete_peer(struct ooh323_peer *peer);
 
 int delete_users(void);
 int delete_peers(void);
@@ -95,7 +95,7 @@ int reload_config(int reload);
 int restart_monitor(void);
 
 int configure_local_rtp(struct ooh323_pvt *p, ooCallData* call);
-void setup_rtp_connection(ooCallData *call, const char *remoteIp, 
+void setup_rtp_connection(ooCallData *call, const char *remoteIp,
                           int remotePort);
 void close_rtp_connection(ooCallData *call);
 struct ast_frame *ooh323_rtp_read
index bb0b208..f4b0a2a 100644 (file)
@@ -327,4 +327,3 @@ static int unload_module(void)
 }
 
 AST_MODULE_INFO_STANDARD_EXTENDED(ASTERISK_GPL_KEY, "MP3 format [Any rate but 8000hz mono is optimal]");
-
index e1a5b20..3231747 100644 (file)
@@ -6,22 +6,22 @@ Introduction
 Objective Open H.323 stack is a simple H.323 implementation in C. This
 package contains the core stack code. For complete H.323 stack package with
 examples or for more information visit www.obj-sys.com/open
- The ASN.1 messaging code was developed using the Objective Systems ASN1C 
-compiler to implement the core H.323 specifications (H.225, H.235, 
-and H.245).  Additional code was then developed which makes use of 
-the compiler generated code for presenting a comparatively high level 
+ The ASN.1 messaging code was developed using the Objective Systems ASN1C
+compiler to implement the core H.323 specifications (H.225, H.235,
+and H.245).  Additional code was then developed which makes use of
+the compiler generated code for presenting a comparatively high level
 stack API.
 
 Features
 
 Features supported in this package include the following:
 
-* H.225/Q.931 - the following message types are supported (including 
-  support for FastStart and H.245 tunneling): 
-  - Setup 
+* H.225/Q.931 - the following message types are supported (including
+  support for FastStart and H.245 tunneling):
+  - Setup
   - Connect
   - Call Proceeding
-  - Alerting 
+  - Alerting
   - Facility
   - ReleaseComplete
 
@@ -54,8 +54,8 @@ Features supported in this package include the following:
 To run the stack test application chansetup
    chansetup - This is a sample program developed for testing multiple calls.
    This program allows stack testing by placing multiple calls. The number of
-   calls, duration of each call and interval between successive calls are 
-   configurable.  
+   calls, duration of each call and interval between successive calls are
+   configurable.
 
 1. Two instances of this program have to be run. Can be run on same machine or
    different machines.
@@ -64,19 +64,19 @@ To run the stack test application chansetup
 
         cd tests/chansetup
 
-2. For running listener instance, 
+2. For running listener instance,
 
         ./h323peer [--use-ip ip] [--use-port port]
 
-   where local ip address and port can be specified for listening to incoming 
+   where local ip address and port can be specified for listening to incoming
    calls. By default, application determines ip address and uses default H323
    port number 1720.
 
 3. For running calling instance
+
         ./h323peer [--use-ip ip] -n <number of calls> -duration <call duration>
                    -interval <inetrval between successive calls> destination
-      
+
    where all times are in seconds. Interval of 0 means next call will be placed
    after current call finishes. "destination" is the dotted ip address of the
    endpoint running listener instance.
@@ -86,10 +86,9 @@ To run the stack test application chansetup
 
 Reporting Problems:
 
-Report problems you encounter by sending E-mail to support@obj-sys.com. 
+Report problems you encounter by sending E-mail to support@obj-sys.com.
 
 If you have any further questions or comments on what you would like to
-see in the product or what is difficult to use or understand, please 
+see in the product or what is difficult to use or understand, please
 communicate them to us. Your feedback is important to us. Please let us
-know how it works out for you - either good or bad. 
-
+know how it works out for you - either good or bad.
index 15b14f7..8e170dc 100644 (file)
@@ -96,7 +96,7 @@ libooh323c_a_SOURCES = ooLogChan.h ooLogChan.c ooUtils.c ooUtils.h ooGkClient.h
 INCLUDES = -Ih323
 
 
-#include_HEADERS = ooUtils.h memheap.h ooCommon.h ooDateTime.h ooGkClient.h ooasn1.h oochannels.h ootrace.h ooh245.h ooports.h ooq931.h oohdr.h ooper.h ooSocket.h ooTimer.h ootypes.h eventHandler.h ooCapability.h ooCalls.h ooStackCmds.h ooh323.h ooh323ep.h printHandler.h rtctype.h h323/H235-SECURITY-MESSAGES.h h323/H323-MESSAGES.h h323/MULTIMEDIA-SYSTEM-CONTROL.h 
+#include_HEADERS = ooUtils.h memheap.h ooCommon.h ooDateTime.h ooGkClient.h ooasn1.h oochannels.h ootrace.h ooh245.h ooports.h ooq931.h oohdr.h ooper.h ooSocket.h ooTimer.h ootypes.h eventHandler.h ooCapability.h ooCalls.h ooStackCmds.h ooh323.h ooh323ep.h printHandler.h rtctype.h h323/H235-SECURITY-MESSAGES.h h323/H323-MESSAGES.h h323/MULTIMEDIA-SYSTEM-CONTROL.h
 EXTRA_DIST = oostk.dsp
 subdir = ooh323c/src
 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
@@ -187,7 +187,7 @@ MULTIMEDIA-SYSTEM-CONTROLDec.$(OBJEXT): \
        h323/MULTIMEDIA-SYSTEM-CONTROLDec.c
 MULTIMEDIA-SYSTEM-CONTROLEnc.$(OBJEXT): \
        h323/MULTIMEDIA-SYSTEM-CONTROLEnc.c
-libooh323c.a: $(libooh323c_a_OBJECTS) $(libooh323c_a_DEPENDENCIES) 
+libooh323c.a: $(libooh323c_a_OBJECTS) $(libooh323c_a_DEPENDENCIES)
        -rm -f libooh323c.a
        $(libooh323c_a_AR) libooh323c.a $(libooh323c_a_OBJECTS) $(libooh323c_a_LIBADD)
        $(RANLIB) libooh323c.a
index fe6c180..bc3db43 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 1997-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
@@ -35,13 +35,13 @@ int initContext (OOCTXT* pctxt)
    return ASN_OK;
 }
 
-int initContextBuffer 
+int initContextBuffer
 (OOCTXT* pctxt, const ASN1OCTET* bufaddr, ASN1UINT bufsiz)
 {
    if (bufaddr == 0) {
       /* dynamic buffer */
       if (bufsiz == 0) bufsiz = ASN_K_ENCBUFSIZ;
-      pctxt->buffer.data = (ASN1OCTET*) 
+      pctxt->buffer.data = (ASN1OCTET*)
          memHeapAlloc (&pctxt->pMsgMemHeap, bufsiz);
       if (!pctxt->buffer.data) return ASN_E_NOMEM;
       pctxt->buffer.size = bufsiz;
@@ -60,7 +60,7 @@ int initContextBuffer
    return ASN_OK;
 }
 
-int initSubContext (OOCTXT* pctxt, OOCTXT* psrc) 
+int initSubContext (OOCTXT* pctxt, OOCTXT* psrc)
 {
    /* ast_mutex_lock(&pctxt->pLock); */
    int stat = ASN_OK;
@@ -85,7 +85,7 @@ void freeContext (OOCTXT* pctxt)
    ASN1BOOL saveBuf;
    ast_mutex_lock(&pctxt->pLock);
    saveBuf = (pctxt->flags & ASN1SAVEBUF) != 0;
-   
+
    if (pctxt->buffer.dynamic && pctxt->buffer.data) {
       if (saveBuf) {
          memHeapMarkSaved (&pctxt->pMsgMemHeap, pctxt->buffer.data, TRUE);
@@ -130,7 +130,7 @@ int setPERBufferUsingCtxt (OOCTXT* pTarget, OOCTXT* pSource)
 {
    int stat;
    ast_mutex_lock(&pTarget->pLock); ast_mutex_lock(&pSource->pLock);
-   stat = initContextBuffer 
+   stat = initContextBuffer
       (pTarget, pSource->buffer.data, pSource->buffer.size);
 
    if (ASN_OK == stat) {
@@ -151,11 +151,11 @@ int setPERBuffer (OOCTXT* pctxt,
    ast_mutex_unlock(&pctxt->pLock);
    if(stat != ASN_OK) return stat;
 
-   
+
    return ASN_OK;
 }
 
-OOCTXT* newContext () 
+OOCTXT* newContext ()
 {
    /* OOCTXT* pctxt = (OOCTXT*) ASN1CRTMALLOC0 (sizeof(OOCTXT)); */
    OOCTXT* pctxt = ast_malloc(sizeof(OOCTXT));
index 3d7fc04..3ce74bf 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 1997-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
 
 #include "ooasn1.h"
 
-static int decode16BitConstrainedString 
+static int decode16BitConstrainedString
 (OOCTXT* pctxt, Asn116BitCharString* pString, Asn116BitCharSet* pCharSet);
 
-static int decodeOctets 
+static int decodeOctets
 (OOCTXT* pctxt, ASN1OCTET* pbuffer, ASN1UINT bufsiz, ASN1UINT nbits);
 
 static int getComponentLength (OOCTXT* pctxt, ASN1UINT itemBits);
 
 int decodeBits (OOCTXT* pctxt, ASN1UINT* pvalue, ASN1UINT nbits)
-{ 
+{
    unsigned char mask;
 
    if (nbits == 0) {
@@ -47,7 +47,7 @@ int decodeBits (OOCTXT* pctxt, ASN1UINT* pvalue, ASN1UINT nbits)
 
       pctxt->buffer.bitOffset -= nbits;
 
-      *pvalue = ((pctxt->buffer.data[pctxt->buffer.byteIndex]) >> 
+      *pvalue = ((pctxt->buffer.data[pctxt->buffer.byteIndex]) >>
                  pctxt->buffer.bitOffset) & ((1 << nbits) - 1);
 
       return ASN_OK;
@@ -62,7 +62,7 @@ int decodeBits (OOCTXT* pctxt, ASN1UINT* pvalue, ASN1UINT nbits)
       /* Check if buffer contains number of bits requested */
 
       int nbytes = (((nbits - pctxt->buffer.bitOffset) + 7) / 8);
-      
+
       if ((pctxt->buffer.byteIndex + nbytes) >= pctxt->buffer.size) {
          return LOG_ASN1ERR (pctxt, ASN_E_ENDOFBUF);
       }
@@ -78,7 +78,7 @@ int decodeBits (OOCTXT* pctxt, ASN1UINT* pvalue, ASN1UINT nbits)
 
       /* second read bytes from next byteIndex */
       while (nbits >= 8) {
-         *pvalue = (*pvalue << 8) | 
+         *pvalue = (*pvalue << 8) |
             (pctxt->buffer.data[pctxt->buffer.byteIndex]);
          pctxt->buffer.byteIndex++;
          nbits -= 8;
@@ -87,8 +87,8 @@ int decodeBits (OOCTXT* pctxt, ASN1UINT* pvalue, ASN1UINT nbits)
       /* third read bits & set bitoffset of the byteIndex */
       if (nbits > 0) {
          pctxt->buffer.bitOffset = 8 - nbits;
-         *pvalue = (*pvalue << nbits) | 
-            ((pctxt->buffer.data[pctxt->buffer.byteIndex]) >> 
+         *pvalue = (*pvalue << nbits) |
+            ((pctxt->buffer.data[pctxt->buffer.byteIndex]) >>
              pctxt->buffer.bitOffset);
       }
 
@@ -96,7 +96,7 @@ int decodeBits (OOCTXT* pctxt, ASN1UINT* pvalue, ASN1UINT nbits)
    }
 }
 
-int decodeBitString 
+int decodeBitString
 (OOCTXT* pctxt, ASN1UINT* numbits_p, ASN1OCTET* buffer, ASN1UINT bufsiz)
 {
    ASN1UINT bitcnt;
@@ -111,7 +111,7 @@ int decodeBitString
       if (bitcnt > 0) {
          *numbits_p += bitcnt;
 
-         stat = bitAndOctetStringAlignmentTest 
+         stat = bitAndOctetStringAlignmentTest
             (pSizeList, bitcnt, TRUE, &doAlign);
          if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
 
@@ -133,7 +133,7 @@ int decodeBitString
    return ASN_OK;
 }
 
-int decodeBMPString 
+int decodeBMPString
 (OOCTXT* pctxt, ASN1BMPString* pvalue, Asn116BitCharSet* permCharSet)
 {
    Asn116BitCharSet charSet;
@@ -164,7 +164,7 @@ int decodeByteAlign (OOCTXT* pctxt)
    return ASN_OK;
 }
 
-int decodeConstrainedStringEx 
+int decodeConstrainedStringEx
 (OOCTXT* pctxt, const char** string, const char* charSet,
  ASN1UINT abits, ASN1UINT ubits, ASN1UINT canSetBits)
 {
@@ -227,9 +227,9 @@ int decodeConstrainedStringEx
    return ASN_OK;
 }
 
-int decodeConsInteger 
+int decodeConsInteger
 (OOCTXT* pctxt, ASN1INT* pvalue, ASN1INT lower, ASN1INT upper)
-{ 
+{
    ASN1UINT range_value = upper - lower;
    ASN1UINT adjusted_value;
    int stat = ASN_OK;
@@ -254,9 +254,9 @@ int decodeConsInteger
    return stat;
 }
 
-int decodeConsUInt8 
+int decodeConsUInt8
 (OOCTXT* pctxt, ASN1UINT8* pvalue, ASN1UINT lower, ASN1UINT upper)
-{ 
+{
    ASN1UINT range_value, value;
    ASN1UINT adjusted_value;
    int stat = ASN_OK;
@@ -299,9 +299,9 @@ int decodeConsUInt8
    return stat;
 }
 
-int decodeConsUInt16 
+int decodeConsUInt16
 (OOCTXT* pctxt, ASN1USINT* pvalue, ASN1UINT lower, ASN1UINT upper)
-{ 
+{
    ASN1UINT range_value, value;
    ASN1UINT adjusted_value;
    int stat = ASN_OK;
@@ -328,9 +328,9 @@ int decodeConsUInt16
    return stat;
 }
 
-int decodeConsUnsigned 
+int decodeConsUnsigned
 (OOCTXT* pctxt, ASN1UINT* pvalue, ASN1UINT lower, ASN1UINT upper)
-{ 
+{
    ASN1UINT range_value;
    ASN1UINT adjusted_value;
    int stat = ASN_OK;
@@ -354,9 +354,9 @@ int decodeConsUnsigned
    return stat;
 }
 
-int decodeConsWholeNumber 
+int decodeConsWholeNumber
 (OOCTXT* pctxt, ASN1UINT* padjusted_value, ASN1UINT range_value)
-{ 
+{
    ASN1UINT nocts, range_bitcnt;
    int stat;
 
@@ -419,9 +419,9 @@ int decodeDynBitString (OOCTXT* pctxt, ASN1DynBitStr* pBitStr)
 
    /* If "fast copy" option is not set (ASN1FATSCOPY) or if constructed,
     * copy the bit string value into a dynamic memory buffer;
-    * otherwise, store the pointer to the value in the decode 
+    * otherwise, store the pointer to the value in the decode
     * buffer in the data pointer argument. */
-   
+
    if (pctxt->flags & ASN1FASTCOPY) {
       /* check is it possible to do optimized decoding */
 
@@ -433,7 +433,7 @@ int decodeDynBitString (OOCTXT* pctxt, ASN1DynBitStr* pBitStr)
       if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
 
       stat = DECODEBIT (pctxt, &bit); /* read first bit of length determinant */
-      if (bit == 1 && stat == ASN_OK) 
+      if (bit == 1 && stat == ASN_OK)
          stat = DECODEBIT (pctxt, &bit); /* read second bit */
 
       pctxt->buffer.byteIndex = byteIndex;  /* restore byte index */
@@ -441,9 +441,9 @@ int decodeDynBitString (OOCTXT* pctxt, ASN1DynBitStr* pBitStr)
 
       /* if either first or second bit != 0 - not fragmented */
 
-      if (bit == 0 && stat == ASN_OK) { 
+      if (bit == 0 && stat == ASN_OK) {
          ASN1UINT bitcnt;
-         
+
          stat = decodeLength (pctxt, &bitcnt);
          if (stat != 0) return LOG_ASN1ERR (pctxt, stat);
 
@@ -454,9 +454,9 @@ int decodeDynBitString (OOCTXT* pctxt, ASN1DynBitStr* pBitStr)
             stat = moveBitCursor (pctxt, bitcnt);
             if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
          }
-         else 
+         else
             pBitStr->data = 0;
-   
+
          return stat;
       }
    }
@@ -470,13 +470,13 @@ int decodeDynBitString (OOCTXT* pctxt, ASN1DynBitStr* pBitStr)
    }
 
    nocts = (nbits + 7) / 8;
-      
+
    /* Allocate memory for the target string */
 
    if (nocts > 0) {
       ptmp = (ASN1OCTET*) ASN1MALLOC (pctxt, nocts);
       if (0 == ptmp) return LOG_ASN1ERR (pctxt, ASN_E_NOMEM);
-      
+
       /* Call static bit string decode function */
 
       stat = decodeBitString (pctxt, &pBitStr->numbits, ptmp, nocts);
@@ -493,7 +493,7 @@ int decodeDynOctetString (OOCTXT* pctxt, ASN1DynOctStr* pOctStr)
 
    /* If "fast copy" option is not set (ASN1FASTCOPY) or if constructed,
     * copy the octet string value into a dynamic memory buffer;
-    * otherwise, store the pointer to the value in the decode 
+    * otherwise, store the pointer to the value in the decode
     * buffer in the data pointer argument. */
 
    if (pctxt->flags & ASN1FASTCOPY) {
@@ -507,7 +507,7 @@ int decodeDynOctetString (OOCTXT* pctxt, ASN1DynOctStr* pOctStr)
       if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
 
       stat = DECODEBIT (pctxt, &bit); /* read first bit of length determinant */
-      if (bit == 1 && stat == ASN_OK) 
+      if (bit == 1 && stat == ASN_OK)
          stat = DECODEBIT (pctxt, &bit); /* read second bit */
 
       pctxt->buffer.byteIndex = byteIndex;  /* restore byte index */
@@ -515,9 +515,9 @@ int decodeDynOctetString (OOCTXT* pctxt, ASN1DynOctStr* pOctStr)
 
       /* if either first or second bit != 0 - not fragmented */
 
-      if (bit == 0 && stat == ASN_OK) { 
+      if (bit == 0 && stat == ASN_OK) {
          ASN1UINT octcnt;
-         
+
          stat = decodeLength (pctxt, &octcnt);
          if (stat != 0) return LOG_ASN1ERR (pctxt, stat);
 
@@ -528,13 +528,13 @@ int decodeDynOctetString (OOCTXT* pctxt, ASN1DynOctStr* pOctStr)
             stat = moveBitCursor (pctxt, octcnt * 8);
             if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
          }
-         else 
+         else
             pOctStr->data = 0;
-         
+
          return stat;
       }
    }
-   
+
    nocts = getComponentLength (pctxt, 8);
 
    if (nocts < 0) return LOG_ASN1ERR (pctxt, nocts);
@@ -671,14 +671,14 @@ int decodeObjectIdentifier (OOCTXT* pctxt, ASN1OBJID* pvalue)
          if (j == 0) {
             subid = pvalue->subid[0];
             pvalue->subid[0] = ((subid / 40) >= 2) ? 2 : subid / 40;
-            pvalue->subid[1] = (pvalue->subid[0] == 2) ? 
+            pvalue->subid[1] = (pvalue->subid[0] == 2) ?
                subid - 80 : subid % 40;
             j = 2;
          }
          else j++;
       }
       else
-         stat = ASN_E_INVOBJID; 
+         stat = ASN_E_INVOBJID;
    }
 
    pvalue->numids = j;
@@ -687,9 +687,9 @@ int decodeObjectIdentifier (OOCTXT* pctxt, ASN1OBJID* pvalue)
    return (stat);
 }
 
-static int decodeOctets 
+static int decodeOctets
 (OOCTXT* pctxt, ASN1OCTET* pbuffer, ASN1UINT bufsiz, ASN1UINT nbits)
-{ 
+{
    ASN1UINT nbytes = (nbits + 7) / 8 ;
    ASN1UINT i = 0, j;
    ASN1UINT rshift = pctxt->buffer.bitOffset;
@@ -740,20 +740,20 @@ static int decodeOctets
       /* Copy last partial byte */
 
       if (nbits >= rshift) {
-         pbuffer[i] = 
+         pbuffer[i] =
             pctxt->buffer.data[pctxt->buffer.byteIndex++] << lshift;
 
          nbitsInLastOctet = nbits - rshift;
 
          if (nbitsInLastOctet > 0) {
-            pbuffer[i] |= 
+            pbuffer[i] |=
                pctxt->buffer.data[pctxt->buffer.byteIndex] >> rshift;
          }
 
          pctxt->buffer.bitOffset = 8 - nbitsInLastOctet;
       }
       else if (nbits > 0) {  /* nbits < rshift */
-         pbuffer[i] = 
+         pbuffer[i] =
             pctxt->buffer.data[pctxt->buffer.byteIndex] << lshift;
          pctxt->buffer.bitOffset = rshift - nbits;
       }
@@ -773,7 +773,7 @@ static int decodeOctets
    return ASN_OK;
 }
 
-int decodeOctetString 
+int decodeOctetString
 (OOCTXT* pctxt, ASN1UINT* numocts_p, ASN1OCTET* buffer, ASN1UINT bufsiz)
 {
    ASN1UINT octcnt;
@@ -790,7 +790,7 @@ int decodeOctetString
          if (TRUE) {
             ASN1BOOL doAlign;
 
-            stat = bitAndOctetStringAlignmentTest 
+            stat = bitAndOctetStringAlignmentTest
                (pSizeList, octcnt, FALSE, &doAlign);
             if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
 
@@ -800,7 +800,7 @@ int decodeOctetString
             }
          }
 
-         stat = decodeOctets (pctxt, &buffer[octidx], 
+         stat = decodeOctets (pctxt, &buffer[octidx],
                            bufsiz - octidx, (octcnt * 8));
 
          if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
@@ -815,7 +815,7 @@ int decodeOctetString
    return ASN_OK;
 }
 
-int decodeOpenType 
+int decodeOpenType
 (OOCTXT* pctxt, const ASN1OCTET** object_p2, ASN1UINT* numocts_p)
 {
    ASN1DynOctStr octStr;
@@ -883,7 +883,7 @@ int decodeSemiConsUnsigned (OOCTXT* pctxt, ASN1UINT* pvalue, ASN1UINT lower)
    stat = decodeLength (pctxt, &nbytes);
    if (stat < 0) return LOG_ASN1ERR (pctxt, stat);
 
-   
+
    if (nbytes > 0) {
       stat = decodeByteAlign (pctxt);
       if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
@@ -898,7 +898,7 @@ int decodeSemiConsUnsigned (OOCTXT* pctxt, ASN1UINT* pvalue, ASN1UINT lower)
 }
 
 int decodeSmallNonNegWholeNumber (OOCTXT* pctxt, ASN1UINT* pvalue)
-{ 
+{
    ASN1BOOL bitValue;
    ASN1UINT len;
    int ret;
@@ -959,7 +959,7 @@ int decodeVarWidthCharString (OOCTXT* pctxt, const char** pvalue)
    return ASN_OK;
 }
 
-static int decode16BitConstrainedString 
+static int decode16BitConstrainedString
 (OOCTXT* pctxt, Asn116BitCharString* pString, Asn116BitCharSet* pCharSet)
 {
    ASN1UINT i, idx, nbits = pCharSet->alignedBits;
@@ -985,7 +985,7 @@ static int decode16BitConstrainedString
          stat = decodeBits (pctxt, &idx, nbits);
          if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
 
-         pString->data[i] = (pCharSet->charSet.data == 0) ? 
+         pString->data[i] = (pCharSet->charSet.data == 0) ?
             idx + pCharSet->firstChar : pCharSet->charSet.data[idx];
       }
    }
@@ -1048,6 +1048,6 @@ int moveBitCursor (OOCTXT* pctxt, int bitOffset)
    if (pctxt->buffer.byteIndex > pctxt->buffer.size) {
       return (ASN_E_ENDOFBUF);
    }
-      
+
    return ASN_OK;
 }
index 71dd9ee..12b15b1 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 1997-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
@@ -30,7 +30,7 @@ void dListInit (DList* pList)
 
 DListNode* dListAppend (OOCTXT* pctxt, DList* pList, void* pData)
 {
-   DListNode* pListNode = (DListNode*) 
+   DListNode* pListNode = (DListNode*)
       memAlloc (pctxt, sizeof(DListNode));
 
    if (0 != pListNode) {
@@ -53,7 +53,7 @@ DListNode* dListAppend (OOCTXT* pctxt, DList* pList, void* pData)
 
 DListNode* dListAppendNode (OOCTXT* pctxt, DList* pList, void* pData)
 {
-   DListNode* pListNode = 
+   DListNode* pListNode =
       (DListNode*) (((char*)pData) - sizeof(DListNode));
 
    if (0 != pListNode) {
@@ -109,7 +109,7 @@ void dListFreeAll (OOCTXT* pctxt, DList* pList)
 
    for (pNode = pList->head; pNode != 0; pNode = pNextNode) {
       pNextNode = pNode->next;
-      
+
       memFreePtr (pctxt, pNode->data);
       memFreePtr (pctxt, pNode);
    }
@@ -148,8 +148,8 @@ void dListFindAndRemove(struct OOCTXT* pctxt, DList* pList, void *data)
       memFreePtr(pctxt, pNode);
    }
 }
-    
-DListNode* dListFindByIndex (DList* pList, int index) 
+
+DListNode* dListFindByIndex (DList* pList, int index)
 {
    DListNode* curNode;
    int i;
@@ -163,11 +163,11 @@ DListNode* dListFindByIndex (DList* pList, int index)
 
 /* Insert item before given node */
 
-DListNode* dListInsertBefore 
+DListNode* dListInsertBefore
 (OOCTXT* pctxt, DList* pList, DListNode* node, const void* pData)
 {
    DListNode* pListNode = (DListNode*) memAlloc (pctxt, sizeof(DListNode));
-  
+
    if (0 != pListNode) {
       pListNode->data = (void*)pData;
 
@@ -212,7 +212,7 @@ DListNode* dListInsertBefore
 
 /* Insert item after given node */
 
-DListNode* dListInsertAfter 
+DListNode* dListInsertAfter
 (OOCTXT* pctxt, DList* pList, DListNode* node, const void* pData)
 {
    DListNode* pListNode = (DListNode*) memAlloc (pctxt, sizeof(DListNode));
@@ -258,4 +258,3 @@ DListNode* dListInsertAfter
 
    return pListNode;
 }
-
index 34a73c8..9f73557 100644 (file)
@@ -1,20 +1,20 @@
 /*
  * Copyright (C) 1997-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
-/** 
- * @file dlist.h 
+/**
+ * @file dlist.h
  * Doubly-linked list structures and utility functions.
  */
 #ifndef _OODLIST_H_
@@ -74,26 +74,26 @@ extern "C" {
  * @param pData        A pointer to a data item to be appended to the list.
  * @return             A pointer to an allocated node structure used to link
  *                     the given data value into the list.
- */ 
-EXTERN DListNode* dListAppend 
+ */
+EXTERN DListNode* dListAppend
 (struct OOCTXT* pctxt, DList* pList, void* pData);
 
-EXTERN DListNode* dListAppendNode 
+EXTERN DListNode* dListAppendNode
 (struct OOCTXT* pctxt, DList* pList, void* pData);
 
 /**
- * This function delete the head item from the list and returns a pointer 
- * the data item stored in that node.  The memory for the node structure 
+ * This function delete the head item from the list and returns a pointer
+ * the data item stored in that node.  The memory for the node structure
  * is released.
  *
  * @param pctxt        A pointer to a context structure. This provides a
  *                     storage area for the function to store all working
  *                     variables that must be maintained between function
  *                     calls.
- * @param pList        A pointer to the linked list structure from which 
+ * @param pList        A pointer to the linked list structure from which
  *                     the node will be deleted.
  * @return             A pointer to the data item stored in the deleted node.
- */ 
+ */
 EXTERN void* dListDeleteHead (struct OOCTXT* pctxt, DList* pList);
 
 EXTERN DListNode* dListFindByIndex (DList* pList, int index);
@@ -101,7 +101,7 @@ EXTERN DListNode* dListFindByIndex (DList* pList, int index);
 /**
  * This function initializes a doubly linked list structure. It sets the number
  * of elements to zero and sets all internal pointer values to NULL. A doubly
- * linked-list structure is described by the DList type. Nodes of the list 
+ * linked-list structure is described by the DList type. Nodes of the list
  * are of type DListNode.
  *
  * Memory for the structures is allocated using the memAlloc run-time
@@ -130,7 +130,7 @@ EXTERN void dListInit (DList* pList);
  */
 EXTERN void dListFreeNodes (struct OOCTXT* pctxt, DList* pList);
 
-/** 
+/**
  * This function removes all nodes from the linked list structure and releases
  * the memory that was allocated for storing the node structures
  * (DListNode) and for data. The memory for data in each node must have
@@ -146,37 +146,37 @@ EXTERN void dListFreeNodes (struct OOCTXT* pctxt, DList* pList);
 EXTERN void dListFreeAll (struct OOCTXT* pctxt, DList* pList);
 
 /**
- * This function inserts an item into the linked list structure before the 
+ * This function inserts an item into the linked list structure before the
  * specified element.
- * 
+ *
  * @param pctxt         Pointer to a context structure.
- * @param pList                A pointer to a linked list structure into which the 
+ * @param pList                A pointer to a linked list structure into which the
  *                        data item is to be inserted.
- * @param node          The position in the list where the item is to be 
- *                        inserted.  The item will be inserted before this 
+ * @param node          The position in the list where the item is to be
+ *                        inserted.  The item will be inserted before this
  *                        node or appended to the list if node is null.
  * @param pData                A pointer to the data item to be inserted to the list.
- * @return             A pointer to an allocated node structure used to 
+ * @return             A pointer to an allocated node structure used to
  *                        link the given data value into the list.
  */
-EXTERN DListNode* dListInsertBefore 
+EXTERN DListNode* dListInsertBefore
 (struct OOCTXT* pctxt, DList* pList, DListNode* node, const void* pData);
 
 /**
- * This function inserts an item into the linked list structure after the 
+ * This function inserts an item into the linked list structure after the
  * specified element.
- * 
+ *
  * @param pctxt         Pointer to a context structure.
- * @param pList                A pointer to a linked list structure into which the 
+ * @param pList                A pointer to a linked list structure into which the
  *                        data item is to be inserted.
- * @param node          The position in the list where the item is to be 
- *                        inserted.  The item will be inserted after this 
+ * @param node          The position in the list where the item is to be
+ *                        inserted.  The item will be inserted after this
  *                        node or added as the head element if node is null.
  * @param pData                A pointer to the data item to be inserted to the list.
- * @return             A pointer to an allocated node structure used to 
+ * @return             A pointer to an allocated node structure used to
  *                        link the given data value into the list.
  */
-EXTERN DListNode* dListInsertAfter 
+EXTERN DListNode* dListInsertAfter
 (struct OOCTXT* pctxt, DList* pList, DListNode* node, const void* pData);
 
 /**
@@ -194,7 +194,7 @@ EXTERN DListNode* dListInsertAfter
 EXTERN void  dListRemove (DList* pList, DListNode* node);
 EXTERN void dListFindAndRemove(struct OOCTXT* pctxt, DList* pList, void* data);
 
-/** 
+/**
  * @}
  */
 #ifdef __cplusplus
index 22fc1f3..b48733b 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 1997-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
@@ -20,7 +20,7 @@
 
 #include "ooasn1.h"
 
-static int encode16BitConstrainedString 
+static int encode16BitConstrainedString
 (OOCTXT* pctxt, Asn116BitCharString value, Asn116BitCharSet* pCharSet);
 
 static int encode2sCompBinInt (OOCTXT* pctxt, ASN1INT value);
@@ -34,7 +34,7 @@ int encodeIdent (OOCTXT* pctxt, ASN1UINT ident);
 
 
 int encodeBit (OOCTXT* pctxt, ASN1BOOL value)
-{ 
+{
    int stat = ASN_OK;
 
    /* If start of new byte, init to zero */
@@ -58,7 +58,7 @@ int encodeBit (OOCTXT* pctxt, ASN1BOOL value)
    /* Set single-bit value */
 
    if (value) {
-      pctxt->buffer.data[pctxt->buffer.byteIndex] |= 
+      pctxt->buffer.data[pctxt->buffer.byteIndex] |=
          ( 1 << pctxt->buffer.bitOffset );
    }
 
@@ -74,7 +74,7 @@ int encodeBit (OOCTXT* pctxt, ASN1BOOL value)
 }
 
 int encodeBits (OOCTXT* pctxt, ASN1UINT value, ASN1UINT nbits)
-{ 
+{
    int nbytes = (nbits + 7)/ 8, stat = ASN_OK;
 
    if (nbits == 0) return stat;
@@ -94,7 +94,7 @@ int encodeBits (OOCTXT* pctxt, ASN1UINT value, ASN1UINT nbits)
 
    if (nbits < (unsigned)pctxt->buffer.bitOffset) {
       pctxt->buffer.bitOffset -= nbits;
-      pctxt->buffer.data[pctxt->buffer.byteIndex] |= 
+      pctxt->buffer.data[pctxt->buffer.byteIndex] |=
          ( value << pctxt->buffer.bitOffset );
       return stat;
    }
@@ -108,22 +108,22 @@ int encodeBits (OOCTXT* pctxt, ASN1UINT value, ASN1UINT nbits)
    /* to set bits in subsequent bytes..                         */
 
    nbits -= pctxt->buffer.bitOffset;
-   pctxt->buffer.data[pctxt->buffer.byteIndex++] |= 
+   pctxt->buffer.data[pctxt->buffer.byteIndex++] |=
       (ASN1OCTET)( value >> nbits );
-   pctxt->buffer.data[pctxt->buffer.byteIndex] = 0; 
+   pctxt->buffer.data[pctxt->buffer.byteIndex] = 0;
 
    while (nbits >= 8) {
       nbits -= 8;
-      pctxt->buffer.data[pctxt->buffer.byteIndex++] = 
+      pctxt->buffer.data[pctxt->buffer.byteIndex++] =
          (ASN1OCTET)( value >> nbits );
-      pctxt->buffer.data[pctxt->buffer.byteIndex] = 0; 
+      pctxt->buffer.data[pctxt->buffer.byteIndex] = 0;
    }
 
    /* copy final partial byte */
 
    pctxt->buffer.bitOffset = 8 - nbits;
    if (nbits > 0) {
-      pctxt->buffer.data[pctxt->buffer.byteIndex] = 
+      pctxt->buffer.data[pctxt->buffer.byteIndex] =
          (ASN1OCTET)((value & ((1 << nbits)-1)) << pctxt->buffer.bitOffset);
    }
    else
@@ -133,11 +133,11 @@ int encodeBits (OOCTXT* pctxt, ASN1UINT value, ASN1UINT nbits)
 }
 
 int encodeBitsFromOctet (OOCTXT* pctxt, ASN1OCTET value, ASN1UINT nbits)
-{ 
+{
    int lshift = pctxt->buffer.bitOffset;
    int rshift = 8 - pctxt->buffer.bitOffset;
    int stat = ASN_OK;
-   ASN1OCTET mask = 0x0; 
+   ASN1OCTET mask = 0x0;
 
    if (nbits == 0) return ASN_OK;
 
@@ -173,14 +173,14 @@ int encodeBitsFromOctet (OOCTXT* pctxt, ASN1OCTET value, ASN1UINT nbits)
    /* possibly some bits in the following octet..               */
 
    else {
-      pctxt->buffer.data[pctxt->buffer.byteIndex] |= 
+      pctxt->buffer.data[pctxt->buffer.byteIndex] |=
          (ASN1OCTET)(value >> rshift);
 
       pctxt->buffer.bitOffset -= nbits;
 
       if (pctxt->buffer.bitOffset < 0) {
          pctxt->buffer.byteIndex++;
-         pctxt->buffer.data[pctxt->buffer.byteIndex] = 
+         pctxt->buffer.data[pctxt->buffer.byteIndex] =
             (ASN1OCTET)(value << lshift);
          pctxt->buffer.bitOffset += 8;
       }
@@ -202,7 +202,7 @@ int encodeBitString (OOCTXT* pctxt, ASN1UINT numbits, const ASN1OCTET* data)
       if (enclen > 0) {
          ASN1BOOL doAlign;
 
-         stat = bitAndOctetStringAlignmentTest 
+         stat = bitAndOctetStringAlignmentTest
             (pSizeList, numbits, TRUE, &doAlign);
          if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
 
@@ -225,7 +225,7 @@ int encodeBitString (OOCTXT* pctxt, ASN1UINT numbits, const ASN1OCTET* data)
    return ASN_OK;
 }
 
-int encodeBMPString 
+int encodeBMPString
 (OOCTXT* pctxt, ASN1BMPString value, Asn116BitCharSet* permCharSet)
 {
    Asn116BitCharSet charSet;
@@ -278,9 +278,9 @@ int encodeCheckBuffer (OOCTXT* pctxt, ASN1UINT nbytes)
    return (stat);
 }
 
-int encodeConsInteger 
+int encodeConsInteger
 (OOCTXT* pctxt, ASN1INT value, ASN1INT lower, ASN1INT upper)
-{ 
+{
    ASN1UINT range_value;
    ASN1UINT adjusted_value;
    int stat;
@@ -301,7 +301,7 @@ int encodeConsInteger
    else {
       range_value = upper + abs(lower);
       adjusted_value = value + abs(lower);
-   }      
+   }
 
    if (range_value != ASN1UINT_MAX) { range_value += 1; }
 
@@ -316,9 +316,9 @@ int encodeConsInteger
    return stat;
 }
 
-int encodeConsUnsigned 
+int encodeConsUnsigned
 (OOCTXT* pctxt, ASN1UINT value, ASN1UINT lower, ASN1UINT upper)
-{ 
+{
    ASN1UINT range_value;
    ASN1UINT adjusted_value;
    int stat;
@@ -340,9 +340,9 @@ int encodeConsUnsigned
    return stat;
 }
 
-int encodeConsWholeNumber 
+int encodeConsWholeNumber
 (OOCTXT* pctxt, ASN1UINT adjusted_value, ASN1UINT range_value)
-{ 
+{
    ASN1UINT nocts, range_bitcnt = getUIntBitCount (range_value - 1);
    int stat;
 
@@ -396,8 +396,8 @@ int encodeConsWholeNumber
    }
 }
 
-int encodeConstrainedStringEx (OOCTXT* pctxt, 
-                            const char* string, 
+int encodeConstrainedStringEx (OOCTXT* pctxt,
+                            const char* string,
                             const char* charSet,
                             ASN1UINT abits,  /* aligned char bits */
                             ASN1UINT ubits,  /* unaligned char bits */
@@ -460,7 +460,7 @@ int encodeExpandBuffer (OOCTXT* pctxt, ASN1UINT nbytes)
 
       pctxt->buffer.data = (ASN1OCTET*) memHeapRealloc
          (&pctxt->pMsgMemHeap, pctxt->buffer.data, pctxt->buffer.size);
-      
+
       if (!pctxt->buffer.data) return (ASN_E_NOMEM);
 
       return (ASN_OK);
@@ -481,7 +481,7 @@ ASN1OCTET* encodeGetMsgPtr (OOCTXT* pctxt, int* pLength)
    return pctxt->buffer.data;
 }
 
-int encodeIdent (OOCTXT* pctxt, ASN1UINT ident) 
+int encodeIdent (OOCTXT* pctxt, ASN1UINT ident)
 {
    ASN1UINT mask;
    int nshifts = 0, stat;
@@ -508,9 +508,9 @@ int encodeIdent (OOCTXT* pctxt, ASN1UINT ident)
 }
 
 int encodeLength (OOCTXT* pctxt, ASN1UINT value)
-{ 
+{
    ASN1BOOL extendable;
-   Asn1SizeCnst* pSize = 
+   Asn1SizeCnst* pSize =
       checkSize (pctxt->pSizeConstraint, value, &extendable);
    ASN1UINT lower = (pSize) ? pSize->lower : 0;
    ASN1UINT upper = (pSize) ? pSize->upper : ASN1UINT_MAX;
@@ -520,7 +520,7 @@ int encodeLength (OOCTXT* pctxt, ASN1UINT value)
    /* within the range of any of them, signal constraint violation      */
    /* error..                                                           */
 
-   if (pctxt->pSizeConstraint && !pSize) 
+   if (pctxt->pSizeConstraint && !pSize)
       return LOG_ASN1ERR (pctxt, ASN_E_CONSVIO);
 
    /* Reset the size constraint in the context block structure */
@@ -578,11 +578,11 @@ int encodeObjectIdentifier (OOCTXT* pctxt, ASN1OBJID* pvalue)
    if (0 == pvalue) return LOG_ASN1ERR (pctxt, ASN_E_INVOBJID);
    if (numids < 2) return LOG_ASN1ERR (pctxt, ASN_E_INVOBJID);
    if (pvalue->subid[0] > 2) return LOG_ASN1ERR (pctxt, ASN_E_INVOBJID);
-   if (pvalue->subid[0] != 2 && pvalue->subid[1] > 39) 
+   if (pvalue->subid[0] != 2 && pvalue->subid[1] > 39)
       return LOG_ASN1ERR (pctxt, ASN_E_INVOBJID);
 
    /* Passed checks, encode object identifier */
-   
+
    /* Munge first two sub ID's and encode */
 
    temp = ((pvalue->subid[0] * 40) + pvalue->subid[1]);
@@ -600,7 +600,7 @@ int encodeObjectIdentifier (OOCTXT* pctxt, ASN1OBJID* pvalue)
 }
 
 int encodebitsFromOctet (OOCTXT* pctxt, ASN1OCTET value, ASN1UINT nbits)
-{ 
+{
    int lshift = pctxt->buffer.bitOffset;
    int rshift = 8 - pctxt->buffer.bitOffset;
    int stat = ASN_OK;
@@ -640,14 +640,14 @@ int encodebitsFromOctet (OOCTXT* pctxt, ASN1OCTET value, ASN1UINT nbits)
    /* possibly some bits in the following octet..               */
 
    else {
-      pctxt->buffer.data[pctxt->buffer.byteIndex] |= 
+      pctxt->buffer.data[pctxt->buffer.byteIndex] |=
          (ASN1OCTET)(value >> rshift);
 
       pctxt->buffer.bitOffset -= nbits;
 
       if (pctxt->buffer.bitOffset < 0) {
          pctxt->buffer.byteIndex++;
-         pctxt->buffer.data[pctxt->buffer.byteIndex] = 
+         pctxt->buffer.data[pctxt->buffer.byteIndex] =
             (ASN1OCTET)(value << lshift);
          pctxt->buffer.bitOffset += 8;
       }
@@ -657,7 +657,7 @@ int encodebitsFromOctet (OOCTXT* pctxt, ASN1OCTET value, ASN1UINT nbits)
 }
 
 int encodeOctets (OOCTXT* pctxt, const ASN1OCTET* pvalue, ASN1UINT nbits)
-{ 
+{
    int i = 0, stat;
    int numFullOcts = nbits / 8;
 
@@ -675,7 +675,7 @@ int encodeOctets (OOCTXT* pctxt, const ASN1OCTET* pvalue, ASN1UINT nbits)
       /* encode buffer..                                           */
 
       if (pctxt->buffer.bitOffset == 8) {
-         memcpy (&pctxt->buffer.data[pctxt->buffer.byteIndex], pvalue, 
+         memcpy (&pctxt->buffer.data[pctxt->buffer.byteIndex], pvalue,
                  numFullOcts);
          pctxt->buffer.byteIndex += numFullOcts;
          pctxt->buffer.data[pctxt->buffer.byteIndex] = 0;
@@ -714,7 +714,7 @@ int encodeOctetString (OOCTXT* pctxt, ASN1UINT numocts, const ASN1OCTET* data)
       if (enclen > 0) {
          ASN1BOOL doAlign;
 
-         stat = bitAndOctetStringAlignmentTest 
+         stat = bitAndOctetStringAlignmentTest
             (pSizeList, numocts, FALSE, &doAlign);
          if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
 
@@ -793,7 +793,7 @@ int encodeOpenTypeExt (OOCTXT* pctxt, DList* pElemList)
                stat = encodeByteAlign (pctxt);
                if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
 
-               stat = encodeOpenType 
+               stat = encodeOpenType
                   (pctxt, pOpenType->numocts, pOpenType->data);
 
                if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
@@ -833,7 +833,7 @@ int encodeSemiConsInteger (OOCTXT* pctxt, ASN1INT value, ASN1INT lower)
 
    if (lower > ASN1INT_MIN)
       value -= lower;
-   
+
    /* Calculate signed number value length */
 
    for ( ; shift > 0; shift -= 8) {
@@ -889,10 +889,10 @@ int encodeSemiConsUnsigned (OOCTXT* pctxt, ASN1UINT value, ASN1UINT lower)
    if ((stat = encodeLength (pctxt, nbytes)) < 0) {
       return stat;
    }
-   
+
    if ((stat = encodeByteAlign (pctxt)) != ASN_OK)
       return stat;
-   
+
    /* Encode additional zero byte if necessary */
 
    if (nbytes > sizeof(value)) {
@@ -908,7 +908,7 @@ int encodeSemiConsUnsigned (OOCTXT* pctxt, ASN1UINT value, ASN1UINT lower)
 }
 
 int encodeSmallNonNegWholeNumber (OOCTXT* pctxt, ASN1UINT value)
-{ 
+{
    int stat;
 
    if (value < 64) {
@@ -964,7 +964,7 @@ int encodeVarWidthCharString (OOCTXT* pctxt, const char* value)
    return ASN_OK;
 }
 
-static int encode16BitConstrainedString 
+static int encode16BitConstrainedString
 (OOCTXT* pctxt, Asn116BitCharString value, Asn116BitCharSet* pCharSet)
 {
    ASN1UINT i, pos;
@@ -985,7 +985,7 @@ static int encode16BitConstrainedString
 
    for (i = 0; i < value.nchars; i++) {
       if (pCharSet->charSet.data == 0) {
-         stat = encodeBits 
+         stat = encodeBits
             (pctxt, value.data[i] - pCharSet->firstChar, nbits);
          if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
       }
@@ -1051,7 +1051,7 @@ static int encodeNonNegBinInt (OOCTXT* pctxt, ASN1UINT value)
    /* multiple of 8 bits and also satisifies the condition that the     */
    /* leading eight bits of the field shall not be zero unless the      */
    /* field is precisely 8 bits long.                                   */
+
    ASN1UINT bitcnt = (value == 0) ? 1 : getUIntBitCount (value);
 
    /* round-up to nearest 8-bit boundary */
@@ -1093,7 +1093,7 @@ static int encodeUnconsLength (OOCTXT* pctxt, ASN1UINT value)
    return enclen;
 }
 
-static int getIdentByteCount (ASN1UINT ident) 
+static int getIdentByteCount (ASN1UINT ident)
 {
    if (ident < (1u << 7)) {         /* 7 */
       return 1;
index 6aef0f4..81e4cc3 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 1997-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
@@ -49,21 +49,21 @@ static const char* g_status_text[] = {
     "Value constraint violation: field %s, value %s",
     "Value range error: lower bound is greater than upper",
     "Unexpected end of file detected",
-    "Invalid UTF-8 character at index %d", 
-    "List error: concurrent modification attempt while iterating", 
+    "Invalid UTF-8 character at index %d",
+    "List error: concurrent modification attempt while iterating",
     "List error: illegal state for attempted operation",
     "Array index out of bounds",
     "Invalid parameter passed to function or method",
     "Invalid time string format",
-    "Context is not initialized", 
-    "ASN.1 value will not fit in target variable", 
-    "Character is not within the defined character set", 
-    "Invalid XML state for attempted operation", 
-    "Error condition returned from XML parser:\n%s", 
+    "Context is not initialized",
+    "ASN.1 value will not fit in target variable",
+    "Character is not within the defined character set",
+    "Invalid XML state for attempted operation",
+    "Error condition returned from XML parser:\n%s",
     "SEQUENCE elements not in correct order",
     "Invalid index for table constraint identifier",
-    "Invalid value for relational table constraint fixed type field", 
-    "File not found", 
+    "Invalid value for relational table constraint fixed type field",
+    "File not found",
     "File read error",
     "File write error",
     "Invalid Base64 string",
@@ -153,7 +153,7 @@ char* errFmtMsg (ASN1ErrInfo* pErrInfo, char* bufp)
          j  = pcnt = 0;
          tp = g_status_text[i];
 
-         while (*tp) 
+         while (*tp)
          {
             if (*tp == '%' && *(tp+1) == 's')
             {
@@ -177,14 +177,14 @@ char* errFmtMsg (ASN1ErrInfo* pErrInfo, char* bufp)
       }
       else
          strcpy (bufp, "unrecognized completion status");
-   }    
+   }
    else strcpy (bufp, "normal completion status");
 
    return (bufp);
 }
 
 /* Get error text in a dynamic memory buffer.  This allocates memory    */
-/* using the 'memAlloc' function.  This memory is automatically freed */ 
+/* using the 'memAlloc' function.  This memory is automatically freed */
 /* at the time the 'memFree' function is called.                      */
 
 char* errGetText (OOCTXT* pctxt)
@@ -199,7 +199,7 @@ char* errGetText (OOCTXT* pctxt)
 
    while (pctxt->errInfo.stkx > 0) {
       pctxt->errInfo.stkx--;
-      sprintf (lbuf, "  Module: %s, Line %d\n", 
+      sprintf (lbuf, "  Module: %s, Line %d\n",
                pctxt->errInfo.stack[pctxt->errInfo.stkx].module,
                pctxt->errInfo.stack[pctxt->errInfo.stkx].lineno);
       strcat(pBuf, lbuf);
@@ -220,7 +220,7 @@ void errPrint (ASN1ErrInfo* pErrInfo)
    printf ("Stack trace:");
    while (pErrInfo->stkx > 0) {
       pErrInfo->stkx--;
-      printf ("  Module: %s, Line %d\n", 
+      printf ("  Module: %s, Line %d\n",
               pErrInfo->stack[pErrInfo->stkx].module,
               pErrInfo->stack[pErrInfo->stkx].lineno);
    }
@@ -244,9 +244,9 @@ int errCopyData (ASN1ErrInfo* pSrcErrInfo, ASN1ErrInfo* pDestErrInfo)
 
    for (i = 0; i < pSrcErrInfo->stkx; i++) {
       if (pDestErrInfo->stkx < ASN_K_MAXERRSTK) {
-         pDestErrInfo->stack[pDestErrInfo->stkx].module = 
+         pDestErrInfo->stack[pDestErrInfo->stkx].module =
             pSrcErrInfo->stack[i].module;
-         pDestErrInfo->stack[pDestErrInfo->stkx++].lineno = 
+         pDestErrInfo->stack[pDestErrInfo->stkx++].lineno =
             pSrcErrInfo->stack[i].lineno;
       }
    }
@@ -255,12 +255,12 @@ int errCopyData (ASN1ErrInfo* pSrcErrInfo, ASN1ErrInfo* pDestErrInfo)
 }
 
 
-int errSetData (ASN1ErrInfo* pErrInfo, int status, 
-                  const char* module, int lno) 
-{ 
+int errSetData (ASN1ErrInfo* pErrInfo, int status,
+                  const char* module, int lno)
+{
    if (pErrInfo->status == 0) {
       pErrInfo->status = status;
    }
    ooLogAsn1Error(status, module, lno);
-   return status; 
+   return status;
 }
index 82e1eb4..ba25d0b 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 2004-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
@@ -64,7 +64,7 @@ void invokeUIntValue (OOCTXT* pctxt, ASN1UINT value)
    }
 }
 
-void invokeBitStrValue (OOCTXT* pctxt, ASN1UINT numbits, 
+void invokeBitStrValue (OOCTXT* pctxt, ASN1UINT numbits,
                         const ASN1OCTET* data)
 {
    if (0 != pctxt->pEventHandler) {
@@ -72,7 +72,7 @@ void invokeBitStrValue (OOCTXT* pctxt, ASN1UINT numbits,
    }
 }
 
-void invokeOctStrValue (OOCTXT* pctxt, ASN1UINT numocts, 
+void invokeOctStrValue (OOCTXT* pctxt, ASN1UINT numocts,
                         const ASN1OCTET* data)
 {
    if (0 != pctxt->pEventHandler) {
@@ -87,7 +87,7 @@ void invokeCharStrValue (OOCTXT* pctxt, const char* value)
    }
 }
 
-void invokeCharStr16BitValue (OOCTXT* pctxt, ASN1UINT nchars, 
+void invokeCharStr16BitValue (OOCTXT* pctxt, ASN1UINT nchars,
                               ASN116BITCHAR* data)
 {
    if (0 != pctxt->pEventHandler) {
@@ -116,7 +116,7 @@ void invokeEnumValue (OOCTXT* pctxt, ASN1UINT value)
    }
 }
 
-void invokeOpenTypeValue (OOCTXT* pctxt, ASN1UINT numocts, 
+void invokeOpenTypeValue (OOCTXT* pctxt, ASN1UINT numocts,
                           const ASN1OCTET* data)
 {
    if (0 != pctxt->pEventHandler) {
index e5eff60..32719c5 100644 (file)
@@ -1,21 +1,21 @@
 /*
  * Copyright (C) 2004-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
 /**
- * @file eventHandler.h 
- * C event handler structure.  This structure holds event handler function 
+ * @file eventHandler.h
+ * C event handler structure.  This structure holds event handler function
  * callbacks for use by the generated code.
  */
 /**
@@ -44,8 +44,8 @@ extern "C" {
 
 
 /**
- * This is a function pointer for a callback function which is invoked 
- * from within a decode function when an element of a SEQUENCE, SET, 
+ * This is a function pointer for a callback function which is invoked
+ * from within a decode function when an element of a SEQUENCE, SET,
  * SEQUENCE OF, SET OF, or CHOICE construct is parsed.
  *
  * @param name         For SEQUENCE, SET, or CHOICE, this is the name of the
@@ -63,8 +63,8 @@ typedef void (*StartElement) (const char* name, int index) ;
 
 
 /**
- * This is a function pointer for a callback function which is invoked from 
- * within a decode function when parsing is complete on an element of a 
+ * This is a function pointer for a callback function which is invoked from
+ * within a decode function when parsing is complete on an element of a
  * SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE construct.
  *
  * @param name         For SEQUENCE, SET, or CHOICE, this is the name of the
@@ -82,7 +82,7 @@ typedef void (*EndElement) (const char* name, int index) ;
 
 
 /**
- * This is a function pointer for a callback function which is invoked from 
+ * This is a function pointer for a callback function which is invoked from
  * within a decode function when a value of the BOOLEAN ASN.1 type is parsed.
  *
  * @param value        Parsed value.
@@ -91,7 +91,7 @@ typedef void (*EndElement) (const char* name, int index) ;
 typedef void (*BoolValue) (ASN1BOOL value);
 
 /**
- * This is a function pointer for a callback function which is invoked from 
+ * This is a function pointer for a callback function which is invoked from
  * within a decode function when a value of the INTERGER ASN.1 type is parsed.
  *
  * @param value        Parsed value.
@@ -100,9 +100,9 @@ typedef void (*BoolValue) (ASN1BOOL value);
 typedef void (*IntValue) (ASN1INT value);
 
 /**
- * This is a function pointer for a callback function which is invoked 
- * from within a decode function when a value of the INTEGER ASN.1 type 
- * is parsed. In this case, constraints on the integer value forced the 
+ * This is a function pointer for a callback function which is invoked
+ * from within a decode function when a value of the INTEGER ASN.1 type
+ * is parsed. In this case, constraints on the integer value forced the
  * use of unsigned integer C type to represent the value.
  *
  * @param value        Parsed value.
@@ -111,19 +111,19 @@ typedef void (*IntValue) (ASN1INT value);
 typedef void (*UIntValue) (ASN1UINT value);
 
 /**
- * This is a function pointer for a callback function which is invoked from 
- * within a decode function when a value of the BIT STRING ASN.1 type is 
+ * This is a function pointer for a callback function which is invoked from
+ * within a decode function when a value of the BIT STRING ASN.1 type is
  * parsed.
  *
- * @param numbits      - Number of bits in the parsed value. 
- * @param data         - Pointer to a byte array that contains the bit 
+ * @param numbits      - Number of bits in the parsed value.
+ * @param data         - Pointer to a byte array that contains the bit
  *                         string data.
  * @return             - none
- */ 
+ */
 typedef void (*BitStrValue) (ASN1UINT numbits, const ASN1OCTET* data);
 
 /**
- * This is a function pointer for a callback function which is invoked from 
+ * This is a function pointer for a callback function which is invoked from
  * within a decode function when a value of one of the OCTET STRING ASN.1 type
  * is parsed.
  *
@@ -135,8 +135,8 @@ typedef void (*BitStrValue) (ASN1UINT numbits, const ASN1OCTET* data);
 typedef void (*OctStrValue) (ASN1UINT numocts, const ASN1OCTET* data) ;
 
 /**
- * This is a function pointer for a callback function which is invoked from 
- * within a decode function when a value of one of the 8-bit ASN.1 character 
+ * This is a function pointer for a callback function which is invoked from
+ * within a decode function when a value of one of the 8-bit ASN.1 character
  * string types is parsed.
  *
  * @param value        Null terminated character string value.
@@ -145,8 +145,8 @@ typedef void (*OctStrValue) (ASN1UINT numocts, const ASN1OCTET* data) ;
 typedef void (*CharStrValue) (const char* value) ;
 
 /**
- * This is a function pointer for a callback function which is invoked from 
- * within a decode function when a value of one of the 16-bit ASN.1 character 
+ * This is a function pointer for a callback function which is invoked from
+ * within a decode function when a value of one of the 16-bit ASN.1 character
  * string types is parsed.
  *
  * This is used for the ASN.1 BmpString type.
@@ -160,7 +160,7 @@ typedef void (*CharStrValue) (const char* value) ;
 typedef void (*CharStrValue16Bit) (ASN1UINT nchars, ASN116BITCHAR* data) ;
 
 /**
- * This is a function pointer for a callback function which is invoked from 
+ * This is a function pointer for a callback function which is invoked from
  * within a decode function when a value of the NULL ASN.1 type is parsed.
  *
  * @param             - none
@@ -169,8 +169,8 @@ typedef void (*CharStrValue16Bit) (ASN1UINT nchars, ASN116BITCHAR* data) ;
 typedef void (*NullValue) (void) ;
 
 /**
- * This is a function pointer for a callback function which is invoked from 
- * within a decode function whn a value the OBJECT IDENTIFIER ASN.1 type is 
+ * This is a function pointer for a callback function which is invoked from
+ * within a decode function whn a value the OBJECT IDENTIFIER ASN.1 type is
  * parsed.
  *
  * @param numSubIds    Number of subidentifiers in the object identifier.
@@ -180,8 +180,8 @@ typedef void (*NullValue) (void) ;
 typedef void (*OidValue) (ASN1UINT numSubIds, ASN1UINT* pSubIds) ;
 
 /**
- * This is a function pointer for a callback function which is invoked from 
- * within a decode function when a value of the ENUMERATED ASN.1 type is 
+ * This is a function pointer for a callback function which is invoked from
+ * within a decode function when a value of the ENUMERATED ASN.1 type is
  * parsed.
  *
  * @param value        - Parsed enumerated value
@@ -190,7 +190,7 @@ typedef void (*OidValue) (ASN1UINT numSubIds, ASN1UINT* pSubIds) ;
 typedef void (*EnumValue) (ASN1UINT value) ;
 
 /**
- * This is a function pointer for a callback function which is invoked from 
+ * This is a function pointer for a callback function which is invoked from
  * within a decode function when an ASN.1 open type is parsed.
  *
  * @param numocts      Number of octets in the parsed value.
@@ -223,7 +223,7 @@ typedef struct EventHandler {
 
 
 /**
- * This function sets the event handler object within the context.  It 
+ * This function sets the event handler object within the context.  It
  * will overwrite the definition of any handler that was set previously.
  *
  * @param pctxt       Context to which event handler has to be added.
@@ -233,8 +233,8 @@ typedef struct EventHandler {
 EXTERN void setEventHandler (OOCTXT* pctxt, EventHandler* pHandler);
 
 /**
- * This function is called to remove the event handler current defined 
- * in the context.  This is done by setting the event handler object 
+ * This function is called to remove the event handler current defined
+ * in the context.  This is done by setting the event handler object
  * pointer to NULL.
  *
  * @param pctxt       Context from which event handler has to be removed.
@@ -243,7 +243,7 @@ EXTERN void setEventHandler (OOCTXT* pctxt, EventHandler* pHandler);
 EXTERN void removeEventHandler (OOCTXT* pctxt);
 
 /**
- * The following functions are invoked from within the generated 
+ * The following functions are invoked from within the generated
  * code to call the various user-defined event handler methods ..
  */
 EXTERN void invokeStartElement (OOCTXT* pctxt, const char* name, int index);
@@ -252,33 +252,33 @@ EXTERN void invokeBoolValue (OOCTXT* pctxt, ASN1BOOL value);
 EXTERN void invokeIntValue (OOCTXT* pctxt, ASN1INT value);
 EXTERN void invokeUIntValue (OOCTXT* pctxt, ASN1UINT value);
 
-EXTERN void invokeBitStrValue 
+EXTERN void invokeBitStrValue
 (OOCTXT* pctxt, ASN1UINT numbits, const ASN1OCTET* data);
 
-EXTERN void invokeOctStrValue 
+EXTERN void invokeOctStrValue
 (OOCTXT* pctxt, ASN1UINT numocts, const ASN1OCTET* data);
 
 EXTERN void invokeCharStrValue (OOCTXT* pctxt, const char* value);
 
-EXTERN void invokeCharStr16BitValue 
+EXTERN void invokeCharStr16BitValue
 (OOCTXT* pctxt, ASN1UINT nchars, ASN116BITCHAR* data);
 
 EXTERN void invokeNullValue (OOCTXT* pctxt);
 
-EXTERN void invokeOidValue 
+EXTERN void invokeOidValue
 (OOCTXT* pctxt, ASN1UINT numSubIds, ASN1UINT* pSubIds);
 
 EXTERN void invokeEnumValue (OOCTXT* pctxt, ASN1UINT value);
 
-EXTERN void invokeOpenTypeValue 
+EXTERN void invokeOpenTypeValue
 (OOCTXT* pctxt, ASN1UINT numocts, const ASN1OCTET* data);
 
-/** 
- * @} 
+/**
+ * @}
  */
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif 
+#endif
index 2f401b3..9884f8b 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 2004-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
index 5ee4069..cf8e0a7 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 2004-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
@@ -1797,4 +1797,3 @@ EXTERN int asn1PD_H235CryptoToken (OOCTXT* pctxt, H235CryptoToken* pvalue)
 
    return (stat);
 }
-
index 8530c51..75f83f5 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 2004-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
@@ -1266,4 +1266,3 @@ EXTERN int asn1PE_H235CryptoToken (OOCTXT* pctxt, H235CryptoToken* pvalue)
 
    return (stat);
 }
-
index 2c27f3b..8f750b9 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 2004-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
@@ -109,4 +109,3 @@ EXTERN const char* gs_H323_MESSAGES_GSM_UIM_vplmn_CharSet =
 
 EXTERN const char* gs_H323_MESSAGES_AliasAddress_dialedDigits_CharSet =
 "#*,0123456789";
-
index 733b58f..eb32ad9 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 2004-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
index 503d796..4a641e4 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright (C) 2004-2005 by Objective Systems, Inc.
  *
- * This software is furnished under an open source license and may be 
- * used and copied only in accordance with the terms of this license. 
- * The text of the license may generally be found in the root 
- * directory of this installation in the COPYING file.  It 
+ * This software is furnished under an open source license and may be
+ * used and copied only in accordance with the terms of this license.
+ * The text of the license may generally be found in the root
+ * directory of this installation in the COPYING file.  It
  * can also be viewed online at the following URL:
  *
  *   http://www.obj-sys.com/open/license.html
  *
- * Any redistributions of this file including modified versions must 
+ * Any redistributions of this file including modified versions must
  * maintain this copyright notice.
  *
  *****************************************************************************/
@@ -27197,4 +27197,3 @@ EXTERN int asn1PD_H225RasMessage (OOCTXT* pctxt, H225RasMessage* pvalue)
 
    return (stat);
 }
-
diff --git