mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-14 23:30:25 +02:00
* Fixed buffer overflow vulnerabilities in the rivwebcapi test harnesses. * Modified rd_createticket(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_addcart(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_addcut(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_addlog(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_assignschedcode(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_audioinfo(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_audiostore(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_copyaudio(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_deletelog(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_editcart(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_editcut(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_export(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_exportpeaks(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_listcart(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_listcarts(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_listcartschedcodes(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_listcut(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_listcuts(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_listgroup(7) in the rivwebcapi to process UTF-8 strings correctly. * Modified rd_listgroups(7) in the rivwebcapi to process UTF-8 strings correctly.
89 lines
2.3 KiB
C
89 lines
2.3 KiB
C
/* rd_editcart.h
|
|
*
|
|
* Header for the Edit Cart Rivendell Access Library
|
|
*
|
|
* (C) Copyright 2015 Todd Baker <bakert@rfa.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public
|
|
* License along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#ifndef RD_EDITCART_H
|
|
#define RD_EDITCART_H
|
|
#include <curl/curl.h>
|
|
|
|
#include <rivwebcapi/rd_common.h>
|
|
|
|
_MYRIVLIB_INIT_DECL
|
|
|
|
#include <rivwebcapi/rd_cart.h>
|
|
|
|
struct edit_cart_values {
|
|
char cart_grp_name[11];
|
|
int use_cart_grp_name;
|
|
char cart_title[256];
|
|
int use_cart_title;
|
|
char cart_artist[256];
|
|
int use_cart_artist;
|
|
char cart_album[256];
|
|
int use_cart_album;
|
|
int cart_year;
|
|
int use_cart_year;
|
|
char cart_label[65];
|
|
int use_cart_label;
|
|
char cart_client[65];
|
|
int use_cart_client;
|
|
char cart_agency[65];
|
|
int use_cart_agency;
|
|
char cart_publisher[65];
|
|
int use_cart_publisher;
|
|
char cart_composer[65];
|
|
int use_cart_composer;
|
|
char cart_conductor[65];
|
|
int use_cart_conductor;
|
|
char cart_user_defined[256];
|
|
int use_cart_user_defined;
|
|
int cart_usage_code;
|
|
int use_cart_usage_code;
|
|
int cart_forced_length;
|
|
int use_cart_forced_length;
|
|
int cart_enforce_length;
|
|
int use_cart_enforce_length;
|
|
int cart_asyncronous;
|
|
int use_cart_asyncronous;
|
|
char cart_owner[65];
|
|
int use_cart_owner;
|
|
char cart_notes[1024];
|
|
int use_cart_notes;
|
|
};
|
|
|
|
int RD_EditCart(struct rd_cart *cart[],
|
|
struct edit_cart_values edit_c_values,
|
|
const char hostname[],
|
|
const char username[],
|
|
const char passwd[],
|
|
const char ticket[],
|
|
const unsigned cartnum,
|
|
const char user_agent[],
|
|
unsigned *numrecs);
|
|
|
|
|
|
void Build_Post_Cart_Fields(struct curl_httppost **first,
|
|
struct curl_httppost **last,
|
|
struct edit_cart_values edit_values);
|
|
|
|
_MYRIVLIB_FINI_DECL
|
|
|
|
|
|
#endif // RD_EDITCART_H
|