зеркало из https://github.com/Azure/sonic-openssh.git
upstream commit
handle UMAC128 initialization like UMAC; ok djm@ markus@
This commit is contained in:
Родитель
f14564c1f7
Коммит
ddef9995a1
5
mac.c
5
mac.c
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: mac.c,v 1.31 2015/01/13 19:31:40 markus Exp $ */
|
/* $OpenBSD: mac.c,v 1.32 2015/01/15 18:32:54 naddy Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001 Markus Friedl. All rights reserved.
|
* Copyright (c) 2001 Markus Friedl. All rights reserved.
|
||||||
*
|
*
|
||||||
|
@ -158,7 +158,8 @@ mac_init(struct sshmac *mac)
|
||||||
return SSH_ERR_ALLOC_FAIL;
|
return SSH_ERR_ALLOC_FAIL;
|
||||||
return 0;
|
return 0;
|
||||||
case SSH_UMAC128:
|
case SSH_UMAC128:
|
||||||
mac->umac_ctx = umac128_new(mac->key);
|
if ((mac->umac_ctx = umac128_new(mac->key)) == NULL)
|
||||||
|
return SSH_ERR_ALLOC_FAIL;
|
||||||
return 0;
|
return 0;
|
||||||
default:
|
default:
|
||||||
return SSH_ERR_INVALID_ARGUMENT;
|
return SSH_ERR_INVALID_ARGUMENT;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче