Project

General

Profile

Bug #11795

ksslf: cast between incompatible function types

Added by Toomas Soome 6 days ago. Updated 4 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with gcc 8:

    ../../common/inet/kssl/ksslrec.c:90:33: error: cast between incompatible function types from 'void (*)(SHA1_CTX *, const void *, size_t)' {aka 'void (*)(struct <anonymous> *, const void *, long unsigned int)'} to 'void (*)(void *, uchar_t *, uint32_t)' {aka 'void (*)(void *, unsigned char *, unsigned int)'} [-Werror=cast-function-type]
          (hashinit_func_t)SHA1Init, (hashupdate_func_t)SHA1Update,
                                     ^
    cc1: all warnings being treated as errors

The problem here is that MD5Update and SHA1Update have different sized third argument, so we need to use wrapper.

History

#1

Updated by Electric Monk 4 days ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 00a2bb8f2626ebdf8b00480ccc705df3502feab1

commit  00a2bb8f2626ebdf8b00480ccc705df3502feab1
Author: Toomas Soome <tsoome@me.com>
Date:   2019-10-11T19:06:44.000Z

    11795 ksslf: cast between incompatible function types
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Reviewed by: Robert Mustacchi <rm@fingolfin.org>
    Approved by: Garrett D'Amore <gdamore@racktopsystems.com>

Also available in: Atom PDF