mom040267 преди 11 години
родител
ревизия
a04c9a0b4f
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 0 1
      ChangeLog
  2. 3 2
      src/apps/relay/userdb.c

+ 0 - 1
ChangeLog

@@ -2,7 +2,6 @@
 Version 4.2.1.1 'Monza':
 	- oAuth security implementation: 
 		TODO:
-		- authorization process - test;
 		- access-token must be cached and included only in ALLOCATE and REFRESH;
 		- token timeout;
 		- kid timeout;

+ 3 - 2
src/apps/relay/userdb.c

@@ -488,7 +488,7 @@ int get_user_key(int in_oauth, int *out_oauth, u08bits *usname, u08bits *realm,
 								dot.enc_block.mac_key,
 								pwdtmp,
 								turn_params.shatype,NULL)>0) {
-						ns_bcopy(dot.enc_block.mac_key,&key,dot.enc_block.key_length);
+						ns_bcopy(dot.enc_block.mac_key,key,dot.enc_block.key_length);
 						ret = 0;
 					}
 				}
@@ -496,8 +496,9 @@ int get_user_key(int in_oauth, int *out_oauth, u08bits *usname, u08bits *realm,
 		}
 	}
 
-	if(out_oauth && *out_oauth)
+	if(out_oauth && *out_oauth) {
 		return ret;
+	}
 
 	if(turn_params.use_auth_secret_with_timestamp) {