This commit is contained in:
shikong 2023-09-26 15:27:50 +08:00
parent e559446d08
commit 41c8480ae0

View File

@ -1,7 +1,6 @@
package cn.skcks.docking.gb28181.sip.utils; package cn.skcks.docking.gb28181.sip.utils;
import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.IdUtil;
import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.DigestUtil; import cn.hutool.crypto.digest.DigestUtil;
import cn.skcks.docking.gb28181.sip.generic.SipBuilder; import cn.skcks.docking.gb28181.sip.generic.SipBuilder;
import lombok.*; import lombok.*;
@ -274,7 +273,7 @@ public class DigestAuthenticationHelper {
authorizationHeader.setNonce(nonce); authorizationHeader.setNonce(nonce);
authorizationHeader.setURI(sipURI); authorizationHeader.setURI(sipURI);
authorizationHeader.setResponse(response); authorizationHeader.setResponse(response);
authorizationHeader.setAlgorithm(DigestAlgorithm.MD5.name()); authorizationHeader.setAlgorithm(DEFAULT_ALGORITHM);
if (qop != null) { if (qop != null) {
authorizationHeader.setQop(qop); authorizationHeader.setQop(qop);
authorizationHeader.setCNonce(cNonce); authorizationHeader.setCNonce(cNonce);