From 249cfc9e10d6e91cf01b9ed35b13cf5c820aac75 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 5 Feb 2003 23:31:40 +0100
Subject: [PATCH] (des_key_sched, des_is_weak_key): Use the name
 nettle_des_set_key for referring to Nettle's function.

Rev: src/nettle/des-compat.c:1.8
---
 des-compat.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/des-compat.c b/des-compat.c
index 3a38abb4..ce0b6242 100644
--- a/des-compat.c
+++ b/des-compat.c
@@ -25,8 +25,6 @@
 
 #include "des-compat.h"
 
-#undef des_set_key
-
 #include "cbc.h"
 #include "macros.h"
 #include "memxor.h"
@@ -193,7 +191,7 @@ des_key_sched(des_cblock *key, des_key_schedule ctx)
     /* Fix the parity */
     des_set_odd_parity(key);
   
-  if (des_set_key(ctx, *key))
+  if (nettle_des_set_key(ctx, *key))
     return 0;
   else switch(ctx->status)
     {
@@ -221,5 +219,5 @@ des_is_weak_key(des_cblock *key)
 {
   struct des_ctx ctx;
 
-  return !des_set_key(&ctx, *key);
+  return !nettle_des_set_key(&ctx, *key);
 }
-- 
GitLab