]> granicus.if.org Git - ejabberd/commitdiff
* src/ejabberd_c2s.erl: Send new id for each new stream inside one
authorAlexey Shchepin <alexey@process-one.net>
Sat, 9 Apr 2005 21:03:42 +0000 (21:03 +0000)
committerAlexey Shchepin <alexey@process-one.net>
Sat, 9 Apr 2005 21:03:42 +0000 (21:03 +0000)
session (thanks to Maxim Ryazanov)

* src/tls/tls_drv.c: Now reads all certificates from certificate
file instead of reading only first one (thanks to Karl-Johan
Karlsson)

* examples/transport-configs/init-scripts/jabber-gg-transport:
Fixed typo (thanks to Sander Devrieze)

SVN Revision: 304

src/ejabberd_c2s.erl

index c46e77ca36eb87694412957ddac5d3099f787e67..09b98af3e28755f108cb468c5ddd4d7147f8909f 100644 (file)
@@ -414,7 +414,8 @@ wait_for_feature_request({xmlstreamelement, El}, StateData) ->
                    ?INFO_MSG("(~w) Accepted authentication for ~s",
                              [StateData#state.socket, U]),
                    {next_state, wait_for_stream,
-                    StateData#state{authentificated = true,
+                    StateData#state{streamid = new_id(),
+                                    authentificated = true,
                                     user = U
                                    }};
                {continue, ServerOut, NewSASLState} ->
@@ -444,6 +445,7 @@ wait_for_feature_request({xmlstreamelement, El}, StateData) ->
            {next_state, wait_for_stream,
             StateData#state{sockmod = tls,
                             socket = TLSSocket,
+                            streamid = new_id(),
                             tls_enabled = true
                            }};
        _ ->
@@ -500,7 +502,8 @@ wait_for_sasl_response({xmlstreamelement, El}, StateData) ->
                    ?INFO_MSG("(~w) Accepted authentication for ~s",
                              [StateData#state.socket, U]),
                    {next_state, wait_for_stream,
-                    StateData#state{authentificated = true,
+                    StateData#state{streamid = new_id(),
+                                    authentificated = true,
                                     user = U
                                    }};
                {continue, ServerOut, NewSASLState} ->