Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1933444 Details for
Bug 2154692
libtnc: Build in C89 mode
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
libtnc-c99.patch
libtnc-c99.patch (text/plain), 4.50 KB, created by
Florian Weimer
on 2022-12-18 16:29:57 UTC
(
hide
)
Description:
libtnc-c99.patch
Filename:
MIME Type:
Creator:
Florian Weimer
Created:
2022-12-18 16:29:57 UTC
Size:
4.50 KB
patch
obsolete
>diff -ur libtnc-1.25.orig/src/libtnc/libtncarray.h libtnc-1.25/src/libtnc/libtncarray.h >--- libtnc-1.25.orig/src/libtnc/libtncarray.h 2009-08-12 11:43:52.000000000 +0200 >+++ libtnc-1.25/src/libtnc/libtncarray.h 2022-12-18 17:04:55.096661333 +0100 >@@ -57,6 +57,8 @@ > // Find the first available empty slot and allocate it to this data item > extern TNC_UInt32 libtnc_array_new(libtnc_array* array, void* data); > >+extern TNC_UInt32 libtnc_array_size(libtnc_array* array); >+ > #ifdef __cplusplus > } > #endif >diff -ur libtnc-1.25.orig/src/libtnc/libtncimc.c libtnc-1.25/src/libtnc/libtncimc.c >--- libtnc-1.25.orig/src/libtnc/libtncimc.c 2009-03-18 12:28:38.000000000 +0100 >+++ libtnc-1.25/src/libtnc/libtncimc.c 2022-12-18 17:06:55.722357567 +0100 >@@ -12,6 +12,7 @@ > // $Id: libtncimc.c,v 1.5 2009/03/18 11:28:35 mikem Exp mikem $ > > #include <libtncconfig.h> >+#include <ctype.h> > #include <stdio.h> > #include <stdlib.h> > #include <string.h> >@@ -21,6 +22,7 @@ > #endif > #include <libtncimc.h> > #include <libtncdebug.h> >+#include <libtnctncc.h> > #include <mutex.h> > > // Array of initialised libtnc_imc structures, appended to the array >diff -ur libtnc-1.25.orig/src/libtnc/libtncimv.c libtnc-1.25/src/libtnc/libtncimv.c >--- libtnc-1.25.orig/src/libtnc/libtncimv.c 2009-03-18 12:28:39.000000000 +0100 >+++ libtnc-1.25/src/libtnc/libtncimv.c 2022-12-18 17:13:43.549934350 +0100 >@@ -17,6 +17,7 @@ > // $Id: libtncimv.c,v 1.4 2009/03/18 11:28:35 mikem Exp mikem $ > > #include <libtncconfig.h> >+#include <ctype.h> > #include <stdio.h> > #include <stdlib.h> > #include <string.h> >@@ -26,6 +27,7 @@ > #endif > #include <libtncimv.h> > #include <libtncdebug.h> >+#include <libtnctncs.h> > #include <mutex.h> > > // Array of initialised libtnc_imv structures, appended to the array >diff -ur libtnc-1.25.orig/src/libtnc/libtnctncc.c libtnc-1.25/src/libtnc/libtnctncc.c >--- libtnc-1.25.orig/src/libtnc/libtnctncc.c 2011-02-08 21:52:41.000000000 +0100 >+++ libtnc-1.25/src/libtnc/libtnctncc.c 2022-12-18 16:56:31.062086799 +0100 >@@ -16,6 +16,8 @@ > #include <libtncxml.h> > #include <libtncdebug.h> > #include <libtncarray.h> >+#include <mutex.h> >+#include <base64.h> > > // The clients preferred language (NULL if not set) > static const char* preferredLanguage = NULL; >diff -ur libtnc-1.25.orig/src/libtnc/libtnctncc.h libtnc-1.25/src/libtnc/libtnctncc.h >--- libtnc-1.25.orig/src/libtnc/libtnctncc.h 2009-08-12 11:43:52.000000000 +0200 >+++ libtnc-1.25/src/libtnc/libtnctncc.h 2022-12-18 17:18:30.919819969 +0100 >@@ -40,6 +40,17 @@ > // Terminate the TNCC layer > extern TNC_Result libtnc_tncc_Terminate(); > >+// This function is called by TNC_TNCC_BindFunction when an IMC wish >+// to discover an address of a function it wishes to call. The default >+// implementation just returns TNC_RESULT_INVALID_PARAMETER, but it >+// may be overridden by the calling application to provide its own >+// implementations of IMC functions or to add new ones that the IMC >+// may call. >+ extern TNC_Result libtnc_tncc_BindFunction( >+ TNC_IMCID imcID, >+ char *functionName, >+ void **pOutfunctionPointer); >+ > // Create a new connection context > // data is optional application data for use by the caller > // return NULL on failure >diff -ur libtnc-1.25.orig/src/libtnc/libtnctncs.h libtnc-1.25/src/libtnc/libtnctncs.h >--- libtnc-1.25.orig/src/libtnc/libtnctncs.h 2009-08-12 11:43:52.000000000 +0200 >+++ libtnc-1.25/src/libtnc/libtnctncs.h 2022-12-18 17:17:45.779308516 +0100 >@@ -59,6 +59,17 @@ > // Terminate the TNCS layer > extern TNC_Result libtnc_tncs_Terminate(); > >+// This function is called by TNC_TNCS_BindFunction when an IMV wishes >+// to discover an address of a function it wishes to call. The default >+// implementation just returns TNC_RESULT_INVALID_PARAMETER, but it >+// may be overridden by the calling application to provide its own >+// implementations of IMV functions or to add new ones that the IMV >+// may call. >+ extern TNC_Result libtnc_tncs_BindFunction( >+ TNC_IMVID imcID, >+ char *functionName, >+ void **pOutfunctionPointer); >+ > // Create a new connection context > // data is optional application data for use by the caller > // return NULL on failure >diff -ur libtnc-1.25.orig/src/libtnc/tncs_attributes.c libtnc-1.25/src/libtnc/tncs_attributes.c >--- libtnc-1.25.orig/src/libtnc/tncs_attributes.c 2011-02-08 21:52:41.000000000 +0100 >+++ libtnc-1.25/src/libtnc/tncs_attributes.c 2022-12-18 16:58:15.198971302 +0100 >@@ -14,6 +14,7 @@ > // as defined in IF-TNCCS v1.2, Revision 6.00, section 2.8.5.5 > > #include <libtncconfig.h> >+#include <stdlib.h> > #include <string.h> > #include <libtncimv.h> > #include <libtncdebug.h>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2154692
: 1933444